Last modified: 2014-11-15 06:47:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68897, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66897 - ImportError when git submodule i18n not initialised
ImportError when git submodule i18n not initialised
Status: PATCH_TO_REVIEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Amir Ladsgroup
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-21 03:18 UTC by John Mark Vandenberg
Modified: 2014-11-15 06:47 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-06-21 03:18:04 UTC
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.
Comment 1 Gerrit Notification Bot 2014-10-13 14:41:45 UTC
Change 166421 had a related patch set uploaded by John Vandenberg:
i18n fallback to <key>

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links