Hi Basudev,
have you downloaded Pywikibot via git? If it is the case, please run git submodule update --init, which will download translations, they are missing.

Best regards,

Zoran Dori

MediaWiki developer




zorandori4444@gmail.com
www.wikiteq.com




суб, 14. авг 2021. у 15:53 Basudev Krishna <basudevkrishna399@gmail.com> је написао/ла:
Traceback (most recent call last):
  File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 399, in <module>
    if not main():
  File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 391, in main
    run_python_file(filename,
  File "/data/data/com.termux/files/home/vikaspy/pwb.py", line 106, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File "./scripts/replace.py", line 1075, in <module>
    main()
  File "./scripts/replace.py", line 929, in main
    single_summary = i18n.twtranslate(
  File "/data/data/com.termux/files/home/vikaspy/pywikibot/tools/_deprecate.py", line 404, in wrapper
    return obj(*__args, **__kw)
  File "/data/data/com.termux/files/home/vikaspy/pywikibot/i18n.py", line 700, in twtranslate
    raise pywikibot.exceptions.TranslationError(
pywikibot.exceptions.TranslationError: Unable to load messages package scripts.i18n for bundle replace-replacing
It can happen due to lack of i18n submodule or files. See https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.TranslationError'>
$
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org