TypeError installing launchpadlib using setup.py

Bug #253986 reported by Diogo Matsubara
4
Affects Status Importance Assigned to Milestone
launchpadlib
Fix Released
High
Leonard Richardson
wadllib
Invalid
Undecided
Unassigned

Bug Description

I tried to install launchpadlib following the instructions in https://help.launchpad.net/API/launchpadlib and got a:

TypeError: use_setuptools() got an unexpected keyword argument 'min_version'

Revision history for this message
Diogo Matsubara (matsubara) wrote :
Changed in launchpadlib:
assignee: nobody → leonardr
importance: Undecided → High
status: New → Triaged
Revision history for this message
Māris Fogels (mars) wrote :

This results from launchpadlib's ez_setup.py script and simplejson's setup.py interacting badly.

simplejson has a hacked ez_setup.py script that adds a 'min_version' argument to ez_setup.use_setuptools(), and simplejson's setup.py file calls this. This works fine when simplejson is the *first* package to load the ez_setup module. However, we use ez_setup in launchpadlib. launchpadlib installs first, calling its own vanilla ez_setup.py. The simplejson setup.py runs second, pulls launchpadlib's ez_setup module from the path, calls it with the 'min_version' argument, and BOOM.

The min_version hack is unnecessary as of ez_setup.py revision 60812. The 'version' argument to ez_setup.use_setuptools() now has the same functionality.

Revision history for this message
Leonard Richardson (leonardr) wrote :

This is fixed in the version of launchpadlib pushed to Launchpad. Once we move Launchpad over to using that version, it'll be fixed there too.

Changed in launchpadlib:
status: Triaged → In Progress
Revision history for this message
Leonard Richardson (leonardr) wrote :

This is now fixed in the version of launchpadlib you can download from Launchpad, so I'm marking it fix released.

Changed in launchpadlib:
status: In Progress → Fix Released
Changed in wadllib:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.