swiftclient-2.0.2 ImportError [closed]

asked 2014-02-17 19:07:51 -0500

Miranda Zhang gravatar image

updated 2014-02-17 19:11:06 -0500

ubuntu@openstack:~$ sudo pip install python-swiftclient
Requirement already satisfied (use --upgrade to upgrade): python-swiftclient in /opt/stack/python-swiftclient
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.0.9 in /usr/local/lib/python2.7/dist-packages (from python-swiftclient)
Cleaning up...
ubuntu@openstack:~$ sudo pip install --upgrade python-swiftclient
Downloading/unpacking python-swiftclient from https://pypi.python.org/packages/source/p/python-swiftclient/python-swiftclient-2.0.2.tar.gz#md5=428789cea9ad3bf1a01e86e150d2ae03
  Downloading python-swiftclient-2.0.2.tar.gz (54kB): 54kB downloaded
  Running setup.py egg_info for package python-swiftclient
    [pbr] Processing SOURCES.txt
    warning: LocalManifestMaker: standard file '-c' not found

    warning: no previously-included files found matching '.gitignore'
    warning: no previously-included files found matching '.gitreview'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no files found matching '*' under directory 'tools'
Requirement already up-to-date: requests>=1.1 in /usr/local/lib/python2.7/dist-packages (from python-swiftclient)
Requirement already up-to-date: simplejson>=2.0.9 in /usr/local/lib/python2.7/dist-packages (from python-swiftclient)
Installing collected packages: python-swiftclient
  Found existing installation: python-swiftclient 1.8.0.33.g20cd340
    Can't uninstall 'python-swiftclient'. No files were found to uninstall.
  Running setup.py install for python-swiftclient
    [pbr] Reusing existing SOURCES.txt
    changing mode of build/scripts-2.7/swift from 644 to 755
    changing mode of /usr/local/bin/swift to 755
Successfully installed python-swiftclient
Cleaning up...
ubuntu@openstack:~$ swift --debug post container_name
Traceback (most recent call last):
  File "/usr/local/bin/swift", line 35, in <module>
    from swiftclient import Connection, RequestException
ImportError: cannot import name RequestException

I also tried the solutions proposed in

https://ask.openstack.org/en/question/4996/importerror-running-swift/

it didn't solve my problem.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by koolhead17
close date 2014-02-18 00:45:39.840773

Comments

@miranda lets take this conversation to previous thread instead starting this new one. Thanks.

koolhead17 gravatar imagekoolhead17 ( 2014-02-18 00:51:53 -0500 )edit