Revision history [back]

click to hide/show revision 1
initial version

Error when installing Swift all in one in virtual machine-fedora

when i run the command, iam getting the error. Please help

TypeError: dist must be a Distribution instance

[swiftdemo@localhost ~]$ git clone https://github.com/openstack/swift.git Cloning into swift... remote: Counting objects: 23571, done. remote: Compressing objects: 100% (8103/8103), done. remote: Total 23571 (delta 17616), reused 20731 (delta 15196) Receiving objects: 100% (23571/23571), 11.69 MiB | 2.53 MiB/s, done. Resolving deltas: 100% (17616/17616), done. [swiftdemo@localhost ~]$ cd ~/swift; [swiftdemo@localhost swift]$ sudo python setup.py develop running develop running egg_info creating swift.egg-info writing requirements to swift.egg-info/requires.txt writing swift.egg-info/PKG-INFO writing top-level names to swift.egg-info/top_level.txt writing dependency_links to swift.egg-info/dependency_links.txt writing entry points to swift.egg-info/entry_points.txt [pbr] Processing SOURCES.txt writing manifest file 'swift.egg-info/SOURCES.txt' [pbr] In git context, generating filelist from git warning: no files found matching 'ChangeLog' warning: no previously-included files matching '*.pyc' found anywhere in distribution reading manifest template 'MANIFEST.in' writing manifest file 'swift.egg-info/SOURCES.txt' running build_ext Creating /usr/lib/python2.7/site-packages/swift.egg-link (link to .) Adding swift 1.9.2.154.ga9af8dd to easy-install.pth file Installing swift-account-audit script to /usr/bin Installing swift-account-auditor script to /usr/bin Installing swift-account-reaper script to /usr/bin Installing swift-account-replicator script to /usr/bin Installing swift-account-server script to /usr/bin Installing swift-bench script to /usr/bin Installing swift-bench-client script to /usr/bin Installing swift-config script to /usr/bin Installing swift-container-auditor script to /usr/bin Installing swift-container-replicator script to /usr/bin Installing swift-container-server script to /usr/bin Installing swift-container-sync script to /usr/bin Installing swift-container-updater script to /usr/bin Installing swift-dispersion-populate script to /usr/bin Installing swift-dispersion-report script to /usr/bin Installing swift-drive-audit script to /usr/bin Installing swift-form-signature script to /usr/bin Installing swift-get-nodes script to /usr/bin Installing swift-init script to /usr/bin Installing swift-object-auditor script to /usr/bin Installing swift-object-expirer script to /usr/bin Installing swift-object-info script to /usr/bin Installing swift-object-replicator script to /usr/bin Installing swift-object-server script to /usr/bin Installing swift-object-updater script to /usr/bin Installing swift-oldies script to /usr/bin Installing swift-orphans script to /usr/bin Installing swift-proxy-server script to /usr/bin Installing swift-recon script to /usr/bin Installing swift-recon-cron script to /usr/bin Installing swift-ring-builder script to /usr/bin Installing swift-temp-url script to /usr/bin

Installed /home/swiftdemo/swift Processing dependencies for swift==1.9.2.154.ga9af8dd Searching for xattr>=0.4 Reading http://pypi.python.org/simple/xattr/ Best match: xattr 0.7.2 Downloading https://pypi.python.org/packages/source/x/xattr/xattr-0.7.2.tar.gz#md5=7a57fb9b6cb8bb4cbe28cdf500b86c8e Processing xattr-0.7.2.tar.gz Running xattr-0.7.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AOg_8C/xattr-0.7.2/egg-dist-tmp-ASg7sJ /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) Traceback (most recent call last): File "setup.py", line 22, in <module> pbr=True) File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/site-packages/setuptools/command/develop.py", line 27, in run self.install_for_development() File "/usr/lib/python2.7/site-packages/setuptools/command/develop.py", line 105, in install_for_development self.process_distribution(None, self.dist, not self.no_deps) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in process_distribution [requirement], self.local_index, self.easy_install File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 576, in resolve dist = best[req.key] = env.best_match(req, self, installer) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 821, in best_match return self.obtain(req, installer) # try and download/install File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 833, in obtain return installer(requirement) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 589, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 619, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1086, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1075, in run_setup run_setup(setup_script, args) File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 30, in run_setup lambda: execfile( File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 72, in run return func() File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 32, in <lambda> {'__file__':setup_script, '__name__':'__main__'} File "setup.py", line 65, in <module>

File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 970, in run_command cmd_obj = self.get_command_obj(command) File "/usr/lib64/python2.7/distutils/dist.py", line 846, in get_command_obj cmd_obj = self.command_obj[command] = klass(self) File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 70, in __init__ _Command.__init__(self,dist) File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__ raise TypeError, "dist must be a Distribution instance" TypeError: dist must be a Distribution instance