Rubin16 created this task.
Rubin16 added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**List of steps to reproduce** (step by step, including full links if
applicable):
- while running reflinks.py it crashes due to invalid encoding, I was running
something like
venv/bin/python3 $HOME/pywikibot-core/pwb.py reflinks -start:Таужное -v
-debug
**What happens?**:
WARNING: Unknown or invalid encoding 'cp-1251'
Dropped throttle(s).
Script terminated by exception:
ERROR: LookupError: unknown encoding: cp-1251
Traceback (most recent call last):
File "/data/project/rubin16/pywikibot-core/pwb.py", line 496, in <module>
main()
File "/data/project/rubin16/pywikibot-core/pwb.py", line 480, in main
if not execute():
File "/data/project/rubin16/pywikibot-core/pwb.py", line 463, in execute
run_python_file(filename, script_args, module)
File "/data/project/rubin16/pywikibot-core/pwb.py", line 144, in
run_python_file
main_mod.__dict__)
File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line
824, in <module>
main()
File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line
820, in main
bot.run()
File
"/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py",
line 1571, in run
self.treat(page)
File "/data/project/rubin16/pywikibot-core/scripts/reflinks.py", line
686, in treat
tag = meta_content.group().decode(enc)
LookupError: unknown encoding: cp-1251
Dropped throttle(s).
Closing network session.
CRITICAL: Exiting due to uncaught exception <class 'LookupError'>
Network session closed.
**What should have happened instead?**:
**Software version (if not a Wikimedia wiki), browser information,
screenshots, other information, etc.**:
TASK DETAIL
https://phabricator.wikimedia.org/T304830
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Rubin16
Cc: Aklapper, pywikibot-bugs-list, Rubin16, 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]