TypeError installing launchpadlib using setup.py
Bug #253986 reported by
Diogo Matsubara
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:/
TypeError: use_setuptools() got an unexpected keyword argument 'min_version'
Changed in launchpadlib: | |
assignee: | nobody → leonardr |
importance: | Undecided → High |
status: | New → Triaged |
Changed in wadllib: | |
status: | New → Invalid |
To post a comment you must log in.
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.