Ask Your Question
2

How do I work around the "TypeError: dist must be a Distribution instance" problem when following the Swift-all-in-one instructions [closed]

asked 2013-09-27 04:11:20 -0500

Mark Parker gravatar image

I was following the instructions on this page: http://docs.openstack.org/developer/swift/development_saio.html

on a fresh Ubuntu 12.04.3 and all was fine until the line:

cd ~/swift; sudo python setup.py develop; cd -

when I got a lot of messages ending in the error:

TypeError: dist must be a Distribution instance

I googled the error and saw some discussion but nothing has got me over this problem.

edit retag flag offensive reopen delete

Closed for the following reason the question is answered, right answer was accepted by Closed for the following reason "the question is answered, right answer was accepted" by koolhead17
close date 2013-11-11 04:32:44.874098

Comments

I'm getting the same thing with the unified CLI running 13.04. It seems like this is a incompatibility with setuptools, but I can't figure out a way around it. The funning thing is the dist object seems to be an instance of Distribution at that point.

FreshPow ( 2013-09-27 12:49:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-01 20:34:48 -0500

torgomatic gravatar image

If you first install dnspython with pip, then run setup.py develop, it may work.

I have no idea why; this is something I discovered by trial and error.

edit flag offensive delete publish link more

Comments

Thanks, that fixed it. I actually had to do a "pip install dnspython --upgrade" because I already had dnspython installed but an old version. I also had to do something first to make pip work but there are not enough characters allowed in this box to describe that.

Mark Parker ( 2013-10-02 04:29:27 -0500 )edit

Question Tools

Follow
3 followers

Stats

Asked: 2013-09-27 04:11:20 -0500

Seen: 1,138 times

Last updated: Oct 01 '13