Page MenuHomePhabricator unknown encoding: win1251
Closed, ResolvedPublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

What happens?:

Found 1 wikipedia:ru processes running, including this one.
Retrieving 50 pages from wikipedia:ru.
WARNING: Unknown or invalid encoding 'win-1251'
Dropped throttle(s).

1 read operation
Execution time: 2 seconds
Read operation time: 2.0 seconds
Script terminated by exception:

ERROR: unknown encoding: win-1251 (LookupError)
Traceback (most recent call last):
  File "/data/project/rubin16/pywikibot-core/", line 488, in <module>
  File "/data/project/rubin16/pywikibot-core/", line 472, in main
    if not execute():
  File "/data/project/rubin16/pywikibot-core/", line 455, in execute
    run_python_file(filename, script_args, module)
  File "/data/project/rubin16/pywikibot-core/", line 142, in run_python_file
  File "/data/project/rubin16/pywikibot-core/scripts/", line 799, in <module>
  File "/data/project/rubin16/pywikibot-core/scripts/", line 795, in main
  File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/", line 1663, in run
  File "/data/project/rubin16/pywikibot-core/scripts/", line 664, in treat
    tag =
LookupError: unknown encoding: win-1251
Closing network session.
CRITICAL: Exiting due to uncaught exception <class 'LookupError'>
Network session closed.

What should have happened instead?:
No crash happens

Event Timeline

Xqt triaged this task as Medium priority.

Change 811738 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] Fix cp encodings

Change 811738 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Fix cp encodings