Page MenuHomePhabricator
Paste P7329

(An Untitled Masterwork)
ActivePublic

Authored by David_Hedlund on Jul 5 2018, 5:31 PM.
$ python pwb.py pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py -summary:"The edit summary" -title:"Test" -file:"Test.wiki" -textonly
Reading 'Test.wiki'...
>>> Test <<<
0 pages read
0 pages written
Execution time: 0 seconds
Script terminated by exception:
ERROR: TranslationError: Unable to load messages package scripts.i18n for bundle pagefromfile-msg_top
It can happen due to lack of i18n submodule or files. See https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
Traceback (most recent call last):
File "pwb.py", line 251, in <module>
if not main():
File "pwb.py", line 244, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "pwb.py", line 115, in run_python_file
main_mod.__dict__)
File "./scripts/pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py", line 352, in <module>
main()
File "./scripts/pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py", line 348, in main
bot.run()
File "/home/david/pywikibot-core-botpass/pywikibot/bot.py", line 1505, in run
self.treat(page)
File "/home/david/pywikibot-core-botpass/pywikibot/bot.py", line 1733, in treat
self.treat_page()
File "./scripts/pagefromfile_new-84d9732400f6a787103fc805e1d573f0.py", line 143, in treat_page
self.site, 'pagefromfile-msg_top')
File "/home/david/pywikibot-core-botpass/pywikibot/tools/__init__.py", line 1450, in wrapper
return obj(*__args, **__kw)
File "/home/david/pywikibot-core-botpass/pywikibot/i18n.py", line 711, in twtranslate
% (_messages_package_name, twtitle, __url__))
pywikibot.i18n.TranslationError: Unable to load messages package scripts.i18n for bundle pagefromfile-msg_top
It can happen due to lack of i18n submodule or files. See https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n
<class 'pywikibot.i18n.TranslationError'>
CRITICAL: Closing network session.