pycontribs / pyrax

The Python SDK for the Rackspace Cloud
developer.rackspace.com
Apache License 2.0
237 stars 209 forks source link

ImportError: No module named wrapt #570

Open rcpeters opened 9 years ago

rcpeters commented 9 years ago

See example from Ubuntu 14.04

             lsb_release -a
             No LSB modules are available.
             Distributor ID:    Ubuntu
             Description:   Ubuntu 14.04.3 LTS
             Release:   14.04
             Codename:  trusty

             python --version
             Python 2.7.6

             sudo pip install --upgrade pyrax
             Requirement already up-to-date: pyrax in /usr/local/lib/python2.7/dist-packages
             Cleaning up...

             echo "import pyrax
             >                  " | python
             Traceback (most recent call last):
               File "<stdin>", line 1, in <module>
               File "/usr/local/lib/python2.7/dist-packages/pyrax/__init__.py", line 58, in <module>
                 from novaclient import auth_plugin as _cs_auth_plugin
               File "/usr/local/lib/python2.7/dist-packages/novaclient/auth_plugin.py", line 23, in <module>
                 from novaclient import utils
               File "/usr/local/lib/python2.7/dist-packages/novaclient/utils.py", line 21, in <module>
                 from oslo_serialization import jsonutils
               File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 60, in <module>
                 from oslo_utils import timeutils
               File "/usr/local/lib/python2.7/dist-packages/oslo_utils/timeutils.py", line 24, in <module>
                 from debtcollector import removals
               File "/usr/local/lib/python2.7/dist-packages/debtcollector/removals.py", line 19, in <module>
                 import wrapt
             ImportError: No module named wrapt
briancurtin commented 9 years ago

Does pip install wrapt work?

It's kind of odd that wouldn't be working for you, and I've never seen this before, but that's a dependency four levels below pyrax.

rcpeters commented 9 years ago
   pip install wrapt
   pip install monotonic
   pip install netifaces

Works.

wbond commented 8 years ago

I have also experienced this issue.

tob4bot commented 5 years ago

you may have installed wrapt with sudo. Try installing the packages for user like pip install wrapt --user

kkairu commented 4 years ago

This works just fine... conda install wrapt

Chidvilas-Karpenahalli-Ramakrishna commented 3 years ago

Usually you will get a specific version of wrapt conflict. For example ERROR: astroid 2.3.3 has requirement wrapt==1.11.*, but you'll have wrapt 1.12.1 which is incompatible. So, identify this and install specific version mentioned. In my case as stated above I had the latest 1.12.1 version which was not compatible with astroid 2.3.3 so I did conda install -c conda-forge wrapt=1.11 and it works.

MH-B commented 2 years ago

I don't know if it helps or not, but I had this problem in colab and fixed by installing the tensorflow-gpu=1.15.