Page MenuHomePhabricator

replace.py: Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>
Closed, ResolvedPublicBUG REPORT

Description

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

python pwb.py replace -fix:isbn -lang:ar

What happens?:

Traceback (most recent call last):
  File "C:\Users\Mohammed\Downloads\core\pwb.py", line 499, in <module>
    main()
  File "C:\Users\Mohammed\Downloads\core\pwb.py", line 483, in main
    if not execute():
  File "C:\Users\Mohammed\Downloads\core\pwb.py", line 466, in execute
    run_python_file(filename, script_args, module)
  File "C:\Users\Mohammed\Downloads\core\pwb.py", line 143, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File ".\scripts\replace.py", line 1100, in <module>
    main()
  File ".\scripts\replace.py", line 1001, in main
    set_summary = i18n.twtranslate(site, str(fix['msg']))
  File "C:\Users\Mohammed\Downloads\core\pywikibot\i18n.py", line 749, in twtranslate
    raise pywikibot.exceptions.TranslationError(fill(
pywikibot.exceptions.TranslationError: No English translation has been defined for TranslateWiki key "isbn-
formatting". It can happen due to lack of i18n submodule or files or
an outdated submodule. See
https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>

Notes:

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Pywikibot: [https] r-pywikibot-core (e78d4a6, g16314, 2022/04/13, 13:56:43, master)
Release version: 7.2.0.dev0
setuptools version: 62.1.0
mwparserfromhell version: 0.6.4
wikitextparser version: n/a
requests version: 2.27.1
    certificate test: ok
Python: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]

Event Timeline

Xqt triaged this task as High priority.

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

[pywikibot/i18n@master] [bugfix] Move "isbn-formatting" messages to "pywikibot-fixes-isbn"

https://gerrit.wikimedia.org/r/782018

Change 782018 merged by jenkins-bot:

[pywikibot/i18n@master] [bugfix] Move "isbn-formatting" messages to "pywikibot-fixes-isbn"

https://gerrit.wikimedia.org/r/782018

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

[pywikibot/core@master] [bugfix] Fix isbn messages

https://gerrit.wikimedia.org/r/782024

Change 782024 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Fix isbn messages

https://gerrit.wikimedia.org/r/782024