matej_suchanek created this task.
matej_suchanek added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Run an interactive script `pwb.py replace` and confirm an edit.
**What happens?**:
RuntimeError: dictionary changed size during iteration
Traceback (most recent call last):
File "C:\Users\matej\Dokumenty\core\pwb.py", line 495, in <module>
main()
File "C:\Users\matej\Dokumenty\core\pwb.py", line 479, in main
if not execute():
File "C:\Users\matej\Dokumenty\core\pwb.py", line 463, in execute
run_python_file(filename, script_args, module)
File "C:\Users\matej\Dokumenty\core\pwb.py", line 143, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File ".\scripts\replace.py", line 1096, in <module>
main()
File ".\scripts\replace.py", line 1092, in main
bot.run()
File "C:\Users\matej\Dokumenty\core\pywikibot\bot.py", line 1565, in run
self.treat(page)
File ".\scripts\replace.py", line 705, in treat
choice = pywikibot.input_choice(
File "C:\Users\matej\Dokumenty\core\pywikibot\bot.py", line 536, in
wrapper
init_handlers()
File "C:\Users\matej\Dokumenty\core\pywikibot\bot.py", line 447, in
init_handlers
writelogheader()
File "C:\Users\matej\Dokumenty\core\pywikibot\bot.py", line 506, in
writelogheader
for module in sys.modules.values():
RuntimeError: dictionary changed size during iteration
CRITICAL: Exiting due to uncaught exception <class 'RuntimeError'>
**Software version (if not a Wikimedia wiki), browser information,
screenshots, other information, etc.**:
Pywikibot: [ssh] pywikibot-core.git (eccb6ab, g16023, 2022/02/28, 18:44:18,
master)
Release version: 7.1.0.dev0
TASK DETAIL
https://phabricator.wikimedia.org/T302774
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: matej_suchanek
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont,
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]