https://bugzilla.wikimedia.org/show_bug.cgi?id=66897
Bug ID: 66897 Summary: ImportError when git submodule i18n not initialised Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
If the git submodule i18n has not been initialised, all scripts which use messages in that submodule fail with ImportError
transdict = getattr(__import__("scripts.i18n", fromlist=[package]), package).msg ImportError: No module named i18n <type 'exceptions.ImportError'>
pwb.py doesnt check it has been initialised and advise the user what to do.
Of less importance, running the test suites without the submodule initialised results in errors in the i18n tests. These tests should be skipped if the i18n submodule doesnt exist.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66897
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High CC| |ladsgroup@gmail.com Assignee|Pywikipedia-bugs@lists.wiki |ladsgroup@gmail.com |media.org | Severity|normal |enhancement
pywikipedia-bugs@lists.wikimedia.org