Looks like the ubuntu package for dnspython 1.9.4, and the Swift package you have is requiring dnspython 1.10.0
Try to install the newer dnspython with pip: pip install "dnspython==1.10.0" -Clay On Sat, Aug 17, 2013 at 3:10 AM, pragya jain <prag_2...@yahoo.co.in> wrote: > hello all! > > > I am installing and configuring swift using the commands given in the book > "software defined storage with openstack swift" by Joe Arnold. > I am working on Ubuntu 12.04 > I had downloaded swift, install it, configure files, prepare the drives, > mount and reboot > Then, I again give 'mount' command and following results are recieved. > > arun@arun-Aspire-5742:~$ mount > /dev/sda4 on / type ext4 (rw,errors=remount-ro) > proc on /proc type proc (rw,noexec,nosuid,nodev) > sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) > none on /sys/fs/fuse/connections type fusectl (rw) > none on /sys/kernel/debug type debugfs (rw) > none on /sys/kernel/security type securityfs (rw) > udev on /dev type devtmpfs (rw,mode=0755) > devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) > tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) > none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) > none on /run/shm type tmpfs (rw,nosuid,nodev) > gvfs-fuse-daemon on /home/arun/.gvfs type fuse.gvfs-fuse-daemon > (rw,nosuid,nodev,user=arun) > > Then, I proceed further for creating the builder files > > arun@arun-Aspire-5742:~$ cd /etc/swift > arun@arun-Aspire-5742:/etc/swift$ su - > Password: > root@arun-Aspire-5742:~# cd /etc/swift > root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder account.builder > create 18 3 24 > Traceback (most recent call last): > File "/usr/local/bin/swift-ring-builder", line 4, in <module> > import pkg_resources > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in > <module> > working_set.require(__requires__) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in > require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: dnspython>=1.10.0 > root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder > container.builder create 18 3 24 > Traceback (most recent call last): > File "/usr/local/bin/swift-ring-builder", line 4, in <module> > import pkg_resources > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in > <module> > working_set.require(__requires__) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in > require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: dnspython>=1.10.0 > root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder object.builder > create 18 3 24 > Traceback (most recent call last): > File "/usr/local/bin/swift-ring-builder", line 4, in <module> > import pkg_resources > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in > <module> > working_set.require(__requires__) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in > require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: dnspython>=1.10.0 > root@arun-Aspire-5742:/etc/swift# > root@arun-Aspire-5742:/etc/swift# swift-ring-builder > Traceback (most recent call last): > File "/usr/local/bin/swift-ring-builder", line 4, in <module> > import pkg_resources > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in > <module> > working_set.require(__requires__) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in > require > needed = self.resolve(parse_requirements(requirements)) > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: dnspython>=1.10.0 > > I was doubtful that these results are not correct and there is some > problem in creating builder files. > > I install the python package dnspython using 'apt-get install' command > Then, I try to create builder file > But, again, I get the same error > > root@arun-Aspire-5742:~# cd /opt/swift/etc > root@arun-Aspire-5742:/opt/swift/etc# sudo apt-get install > python-dnspython > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following NEW packages will be installed: > python-dnspython > 0 upgraded, 1 newly installed, 0 to remove and 590 not upgraded. > Need to get 99.2 kB of archives. > After this operation, 548 kB of additional disk space will be used. > Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main python-dnspython > all 1.9.4-0ubuntu3 [99.2 kB] > Fetched 99.2 kB in 3s (30.7 kB/s) > Selecting previously unselected package python-dnspython. > (Reading database ... 150833 files and directories currently installed.) > Unpacking python-dnspython (from > .../python-dnspython_1.9.4-0ubuntu3_all.deb) ... > Setting up python-dnspython (1.9.4-0ubuntu3) ... > > root@arun-Aspire-5742:/opt/swift/etc# cd /etc/swift > root@arun-Aspire-5742:/etc/swift# sudo swift-ring-builder account.builder > create 18 3 24 > Traceback (most recent call last): > File "/usr/local/bin/swift-ring-builder", line 4, in <module> > import pkg_resources > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2711, in > <module> > parse_requirements(__requires__), Environment() > File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in > resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: dnspython>=1.10.0 > root@arun-Aspire-5742:/etc/swift# > > please help me in this regard > > --- > > thanks > > Pragya Jain > > > > > _______________________________________________ > Mailing list: > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : openstack@lists.openstack.org > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack