Revision history [back]

Error when building python-swiftclient

Here are the exact steps I'm following on my Mac OS X laptop:

$ git clone http://github.com/openstack-dev/python-swiftclient.git

$ virtualenv ~/.venv/swiftclient
$ source ~/.venv/swiftclient2/bin/activate

$ cd python-swiftclient
$ python setup.py develop

And I get this error:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dist'
  warnings.warn(msg)
running develop
running egg_info
writing requirements to python_swiftclient.egg-info/requires.txt
writing python_swiftclient.egg-info/PKG-INFO
writing top-level names to python_swiftclient.egg-info/top_level.txt
writing dependency_links to python_swiftclient.egg-info/dependency_links.txt
[pbr] Reusing existing SOURCES.txt
running build_ext
Creating /Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/python-swiftclient.egg-link (link to .)
python-swiftclient 1.8.0.1.ge08ec3a is already the active version in easy-install.pth
Installing swift script to /Users/joehakimrahme/.venv/swiftclient2/bin

Installed /Users/joehakimrahme/VagrantVM/devstack/python-swiftclient
Processing dependencies for python-swiftclient==1.8.0.1.ge08ec3a
Searching for simplejson>=2.0.9
Reading http://pypi.python.org/simple/simplejson/
Best match: simplejson 3.3.1
Downloading https://pypi.python.org/packages/source/s/simplejson/simplejson-3.3.1.tar.gz#md5=36eec59b63bb852eaaac724ac8985f74
Processing simplejson-3.3.1.tar.gz
Running simplejson-3.3.1/setup.py -q bdist_egg --dist-dir /var/folders/td/6j5vqfc17msdrb0bd0jmldqm0000gn/T/easy_install-Mkjkg2/simplejson-3.3.1/egg-dist-tmp-x4Nkdo
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    pbr=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 27, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 102, in install_for_development
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 563, in resolve
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 799, in best_match
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 811, in obtain
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
  File "setup.py", line 107, in <module>

  File "setup.py", line 104, in run_setup

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.py", line 53, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance

What are the steps I should follow to build it correctly?

Error when building python-swiftclient

Here are the exact steps I'm following on my Mac OS X laptop:

$ git clone http://github.com/openstack-dev/python-swiftclient.git

$ virtualenv ~/.venv/swiftclient
~/.venv/swiftclient2
$ source ~/.venv/swiftclient2/bin/activate

$ cd python-swiftclient
$ python setup.py develop

And I get this error:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dist'
  warnings.warn(msg)
running develop
running egg_info
writing requirements to python_swiftclient.egg-info/requires.txt
writing python_swiftclient.egg-info/PKG-INFO
writing top-level names to python_swiftclient.egg-info/top_level.txt
writing dependency_links to python_swiftclient.egg-info/dependency_links.txt
[pbr] Reusing existing SOURCES.txt
running build_ext
Creating /Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/python-swiftclient.egg-link (link to .)
python-swiftclient 1.8.0.1.ge08ec3a is already the active version in easy-install.pth
Installing swift script to /Users/joehakimrahme/.venv/swiftclient2/bin

Installed /Users/joehakimrahme/VagrantVM/devstack/python-swiftclient
Processing dependencies for python-swiftclient==1.8.0.1.ge08ec3a
Searching for simplejson>=2.0.9
Reading http://pypi.python.org/simple/simplejson/
Best match: simplejson 3.3.1
Downloading https://pypi.python.org/packages/source/s/simplejson/simplejson-3.3.1.tar.gz#md5=36eec59b63bb852eaaac724ac8985f74
Processing simplejson-3.3.1.tar.gz
Running simplejson-3.3.1/setup.py -q bdist_egg --dist-dir /var/folders/td/6j5vqfc17msdrb0bd0jmldqm0000gn/T/easy_install-Mkjkg2/simplejson-3.3.1/egg-dist-tmp-x4Nkdo
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    pbr=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 27, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 102, in install_for_development
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 563, in resolve
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 799, in best_match
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 811, in obtain
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
  File "setup.py", line 107, in <module>

  File "setup.py", line 104, in run_setup

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.py", line 53, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance

What are the steps I should follow to build it correctly?

Error when building python-swiftclient

Here are the exact steps I'm following on my Mac OS X laptop:

$ git clone http://github.com/openstack-dev/python-swiftclient.git
http://github.com/openstack/python-swiftclient.git

$ virtualenv ~/.venv/swiftclient2
$ source ~/.venv/swiftclient2/bin/activate

$ cd python-swiftclient
$ python setup.py develop

And I get this error:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dist'
  warnings.warn(msg)
running develop
running egg_info
writing requirements to python_swiftclient.egg-info/requires.txt
writing python_swiftclient.egg-info/PKG-INFO
writing top-level names to python_swiftclient.egg-info/top_level.txt
writing dependency_links to python_swiftclient.egg-info/dependency_links.txt
[pbr] Reusing existing SOURCES.txt
running build_ext
Creating /Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/python-swiftclient.egg-link (link to .)
python-swiftclient 1.8.0.1.ge08ec3a is already the active version in easy-install.pth
Installing swift script to /Users/joehakimrahme/.venv/swiftclient2/bin

Installed /Users/joehakimrahme/VagrantVM/devstack/python-swiftclient
Processing dependencies for python-swiftclient==1.8.0.1.ge08ec3a
Searching for simplejson>=2.0.9
Reading http://pypi.python.org/simple/simplejson/
Best match: simplejson 3.3.1
Downloading https://pypi.python.org/packages/source/s/simplejson/simplejson-3.3.1.tar.gz#md5=36eec59b63bb852eaaac724ac8985f74
Processing simplejson-3.3.1.tar.gz
Running simplejson-3.3.1/setup.py -q bdist_egg --dist-dir /var/folders/td/6j5vqfc17msdrb0bd0jmldqm0000gn/T/easy_install-Mkjkg2/simplejson-3.3.1/egg-dist-tmp-x4Nkdo
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    pbr=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 27, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/develop.py", line 102, in install_for_development
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 563, in resolve
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 799, in best_match
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 811, in obtain
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
  File "setup.py", line 107, in <module>

  File "setup.py", line 104, in run_setup

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
    cmd_obj = self.command_obj[command] = klass(self)
  File "/Users/joehakimrahme/.venv/swiftclient2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.py", line 53, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance

What are the steps I should follow to build it correctly?