TypeError: dist must be a Distribution instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
So we tried filing a bug against setuptools:
https:/
But we are still wrought with grief:
https:/
I believe the issues manifests itself with "older" versions of setuptools - like you get if you installed python-setuptools on Lucid or Precise.
A patch was identified against setuptools that seemed to work around the issue:
http://
But the setuptools maintainer thought it was too heavy handed, and suggested the problem lie here:
https:/
The following Vagrantfile seems to reliably demonstrate the issue:
VAGRANTFILE
Vagrant.
config.vm.box = "precise"
config.
config.
config.
config.
config.
config.
end
Normally the work-arounds I've seen just require getting a new-enough-version of pip and setuptools - but I've seen even veteran pythonistias claim they still had struggles after trying various work-arounds.
Is there any hope this problem could be addressed with a patch to pbr so common workflows don't encounter this roadblock?
Changed in pbr: | |
status: | New → In Progress |
Changed in pbr: | |
status: | Fix Committed → Fix Released |
This bug has been driving me crazy for months. There is quite a bit of work going on with setuptools recently so this bug often gets written off as "update your setuptools". The problem is that pbr is unpatching distribute, which setuptools has patched:
https:/ /github. com/openstack- dev/pbr/ blob/master/ pbr/core. py#L52
This makes it look like a setuptools issue, when it's actually a pbr issue. Any package that includes pbr anywhere in its dependency tree gets bitten by this bug, so it's sending ripples of problems even outside the openstack ecosystem, for example:
https:/ /github. com/Netflix/ aminator/ issues/ 147 /bitbucket. org/dhellmann/ virtualenvwrapp er/issue/ 199/packaging- problem- unable- to-use /github. com/wal- e/wal-e/ issues/ 65 /bugs.launchpad .net/swift/ +bug/1217288 /bugzilla. redhat. com/show_ bug.cgi? id=1048458 sourceforge. net/p/imdbpy/ mailman/ imdbpy- help/ /code.google. com/p/sqlalchem y-migrate/ issues/ detail? id=165 www.mediawiki. org/wiki/ Talk:Continuous _integration/ Jenkins_ job_builder
https:/
https:/
https:/
https:/
http://
https:/
http://