https://bugzilla.wikimedia.org/show_bug.cgi?id=72249
Bug ID: 72249 Summary: py34 pwb.py loads externals/httplib2 even if it is empty 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: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
Normally if the externals/httplib2 directory is empty, and there is no httplib2 installed on the system, running pwb.py will report an error and advise the user to use git recursive to install httplib2 into the externals directory.
Python 3.4 (and 3.5 nightlys) will 'import' the directory externals/httplib2 even when it is empty, causing pwb.py to fail when it attempts to access 'httplib2.__version__' which doesnt exist in the empty directory externals/httplib2.
Steps to reproduce: 1. Uninstall httplib2 from python34 environment. 2. rm -rf externals/httplib2 3. mkdir externals/httplib2 4. python34 pwb.py version
Expected results: An error like: Python module httplib2 >= 0.6.0 is required. Did you clone without --recursive? Try running 'git submodule update --init'
Actual results: AttributeError: 'module' object has no attribute '__version__'