Web browser: ---
            Bug ID: 59970
           Summary: Show clearer error on non-recursive clone
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
    Classification: Unclassified
   Mobile Platform: ---

If someone uses 'git clone https://..../pywikibot-core' or -compat, instead of
'git clone --recursive', the bot doesn't work, due to httplib2 missing (-core)
and i18n missing (core and compat). However, the errors are less than clear:

Traceback (most recent call last):
  File "C:\rewrite\", line 123, in <module>
  File "C:\rewrite\", line 30, in tryimport_pwb
    import pywikibot
  File "C:\rewrite\pywikibot\", line 412, in <module>
    from .page import Page, ImagePage, Category, Link, User, ItemPage,
age, Claim
  File "C:\rewrite\pywikibot\", line 17, in <module>
  File "C:\rewrite\pywikibot\", line 32, in <module>
    from pywikibot import pagegenerators
  File "C:\rewrite\pywikibot\", line 31, in <module>
    from pywikibot.comms import http
  File "C:\rewrite\pywikibot\comms\", line 35, in <module>
    import queue as Queue
ImportError: No module named queue

Traceback (most recent call last):
  File "", line 970, in <module>
  File "", line 636, in main
    {'description': u''})
  File "/home/valhallasw/src/pwb/compat-svn/trunk/pywikibot/", line 336,
in twtranslate
    transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg
ImportError: No module named i18n

In both cases, we should check for the existance of the externals, and respond
with a clear error message otherwise.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to