Page MenuHomePhabricator Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>
Closed, ResolvedPublicBUG REPORT


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

python replace -fix:isbn -lang:ar

What happens?:

Traceback (most recent call last):
  File "C:\Users\Mohammed\Downloads\core\", line 499, in <module>
  File "C:\Users\Mohammed\Downloads\core\", line 483, in main
    if not execute():
  File "C:\Users\Mohammed\Downloads\core\", line 466, in execute
    run_python_file(filename, script_args, module)
  File "C:\Users\Mohammed\Downloads\core\", line 143, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File ".\scripts\", line 1100, in <module>
  File ".\scripts\", line 1001, in main
    set_summary = i18n.twtranslate(site, str(fix['msg']))
  File "C:\Users\Mohammed\Downloads\core\pywikibot\", 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
CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>


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"

Change 782018 merged by jenkins-bot:

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

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

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

Change 782024 merged by jenkins-bot:

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