-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean_commonscat.py #13
Comments
S těmi importy vlastních nástrojů je to problém, občas funguje |
odstranil jsem postupně všechny tečky a teď dostávám |
Skript už se spustí, ale spadne
|
C:\pwb>pwb.py userscripts/clean_commonscat.py Traceback (most recent call last): File "C:\pwb\pwb.py", line 39, in <module> sys.exit(main()) File "C:\pwb\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "C:\Python310\lib\runpy.py", line 289, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Python310\lib\runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\pwb\pywikibot\scripts\wrapper.py", line 513, in <module> main() File "C:\pwb\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): File "C:\pwb\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\pwb\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\pwb\scripts\userscripts\clean_commonscat.py", line 43 fr'(?:^==|^\{\{(?:{templates})|^\[\[(?:{ns}):)', flags=re.M) ^ SyntaxError: f-string expression part cannot include a backslash CRITICAL: Exiting due to uncaught exception SyntaxError: f-string expression part cannot include a backslash (clean_commonscat.py, line 43)
pokud odsraním
f
na začátku řádku, dostanuC:\pwb>pwb.py userscripts/clean_commonscat.py Traceback (most recent call last): File "C:\pwb\pwb.py", line 39, in <module> sys.exit(main()) File "C:\pwb\pwb.py", line 35, in main runpy.run_path(str(path), run_name='__main__') File "C:\Python310\lib\runpy.py", line 289, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Python310\lib\runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\pwb\pywikibot\scripts\wrapper.py", line 513, in <module> main() File "C:\pwb\pywikibot\scripts\wrapper.py", line 497, in main if not execute(): File "C:\pwb\pywikibot\scripts\wrapper.py", line 484, in execute run_python_file(filename, script_args, module) File "C:\pwb\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\pwb\scripts\userscripts\clean_commonscat.py", line 10, in <module> from .deferred import DeferredCallbacksBot ImportError: attempted relative import with no known parent package CRITICAL: Exiting due to uncaught exception ImportError: attempted relative import with no known parent package
The text was updated successfully, but these errors were encountered: