Last modified: 2014-10-21 05:34:16 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 T74249, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72249 - py34 pwb.py loads externals/httplib2 even if it is empty
py34 pwb.py loads externals/httplib2 even if it is empty
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-20 06:40 UTC by John Mark Vandenberg
Modified: 2014-10-21 05:34 UTC (History)
0 users

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


Attachments

Description John Mark Vandenberg 2014-10-20 06:40:45 UTC
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__'
Comment 1 Gerrit Notification Bot 2014-10-20 06:46:24 UTC
Change 167533 had a related patch set uploaded by John Vandenberg:
Check httplib2.__version__ exists

https://gerrit.wikimedia.org/r/167533
Comment 2 Gerrit Notification Bot 2014-10-20 11:51:57 UTC
Change 167533 merged by jenkins-bot:
Check httplib2.__version__ exists

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

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


Navigation
Links