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 -0600

Mark Parker gravatar image

I was following the instructions on this page:

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

cd ~/swift; sudo python 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 merge delete

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


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 gravatar imageFreshPow ( 2013-09-27 12:49:39 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

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

torgomatic gravatar image

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

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

edit flag offensive delete link more


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 gravatar imageMark Parker ( 2013-10-02 04:29:27 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



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

Seen: 4,319 times

Last updated: Oct 01 '13