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: [email protected]
          Reporter: [email protected]
       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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to