https://bugzilla.wikimedia.org/show_bug.cgi?id=59970
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 Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl 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:
Core ---- Traceback (most recent call last): File "C:\rewrite\pwb.py", line 123, in <module> tryimport_pwb() File "C:\rewrite\pwb.py", line 30, in tryimport_pwb import pywikibot File "C:\rewrite\pywikibot__init__.py", line 412, in <module> from .page import Page, ImagePage, Category, Link, User, ItemPage, PropertyP age, Claim File "C:\rewrite\pywikibot\page.py", line 17, in <module> import pywikibot.site File "C:\rewrite\pywikibot\site.py", line 32, in <module> from pywikibot import pagegenerators File "C:\rewrite\pywikibot\pagegenerators.py", line 31, in <module> from pywikibot.comms import http File "C:\rewrite\pywikibot\comms\http.py", line 35, in <module> import queue as Queue ImportError: No module named queue
Compat ------ Traceback (most recent call last): File "replace.py", line 970, in <module> main() File "replace.py", line 636, in main {'description': u''}) File "/home/valhallasw/src/pwb/compat-svn/trunk/pywikibot/i18n.py", 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.