Page MenuHomePhabricator

ImportError when git submodule i18n not initialised
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=63327

Details

Reference
bz66897

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:27 AM
bzimport set Reference to bz66897.

Change 166421 had a related patch set uploaded by John Vandenberg:
i18n fallback to <key>

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

jayvdb set Security to None.
jayvdb moved this task from Backlog to Next main release on the Pywikibot board.

Change 151114 had a related patch set uploaded (by Ladsgroup):
Use JSON for i18n files

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

Change 151114 had a related patch set uploaded (by Ladsgroup):
Use JSON for i18n files

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