ging / fiware-idm-deprecated

DEPRECATED - Identity Manager - Keyrock
Apache License 2.0
18 stars 25 forks source link

ImportError: No module named concurrency #79

Closed raiuli closed 7 years ago

raiuli commented 7 years ago

When I am trying to run keystone, I get the following error in mac OSX El Capitan

(.venv)A9092:keystone raiuli$ sudo tools/with_venv.sh bin/keystone-all -v
Traceback (most recent call last):
  File "bin/keystone-all", line 22, in <module>
    from oslo.concurrency import processutils
ImportError: No module named concurrency

But I have checked "pip list" and it show oslo.concurrency. Here is my "pip list" result.

(.venv)A9092:keystone raiuli$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
alembic (0.8.9)
amqp (1.4.9)
anyjson (0.3.3)
Babel (1.3)
bashate (0.5.1)
debtcollector (1.10.0)
decorator (4.0.10)
dogpile.cache (0.5.6)
dogpile.core (0.4.1)
enum34 (1.1.6)
eventlet (0.15.2)
extras (1.0.0)
fasteners (0.14.1)
fixtures (3.0.0)
flake8 (2.1.0)
funcsigs (1.0.2)
functools32 (3.2.3.post2)
greenlet (0.4.2)
hacking (0.9.6)
iso8601 (0.1.10)
jsonschema (2.5.1)
keystonemiddleware (1.3.2)
kombu (3.0.15)
linecache2 (1.0.0)
Mako (1.0.6)
MarkupSafe (0.23)
mccabe (0.2.1)
monotonic (1.2)
MySQL-python (1.2.5)
netaddr (0.7.13)
netifaces (0.10.4)
oauthlib (0.7.2)
oslo.concurrency (0.4.0)
oslo.config (1.6.0)
oslo.db (1.0.3)
oslo.i18n (1.3.1)
oslo.messaging (1.4.2)
oslo.serialization (1.2.0)
oslo.utils (1.4.1)
passlib (1.6.2)
Paste (1.7.5.1)
PasteDeploy (1.5.2)
pbr (0.11.1)
pep8 (1.5.6)
pip (9.0.1)
posix-ipc (0.9.9)
prettytable (0.7.2)
pycadf (0.6.3)
pyflakes (0.8.1)
pymongo (3.4.0)
pyotp (2.0.1)
pyparsing (2.1.10)
pysqlite (2.6.3)
python-editor (1.0.3)
python-keystoneclient (0.11.2.dev305, /Users/raiuli/.Trash/keystone/src/python-keystoneclient)
python-memcached (1.58)
python-mimeparse (1.6.0)
python-slugify (1.0.2)
pytz (2016.10)
PyYAML (3.10)
repoze.lru (0.6)
requests (2.7.0)
retrying (1.3.3)
rfc3986 (0.4.1)
Routes (2.1)
setuptools (23.1.0)
six (1.10.0)
SQLAlchemy (0.9.10)
sqlalchemy-migrate (0.9.1)
stevedore (1.9.0)
Tempita (0.5.2)
testtools (2.2.0)
traceback2 (1.4.0)
Unidecode (0.4.19)
unittest2 (1.1.0)
vboxapi (1.0)
virtualenv (15.1.0)
WebOb (1.3.1)
wheel (0.29.0)
wrapt (1.10.8)

How to solve the problem?

federicofdez commented 7 years ago

Good morning @raiuli ,

Do you encounter the same issue when running KeyRock in Ubuntu? We actually have never tried to make it work under MacOS...

Besides, note that KeyRock uses its own virtual environment for managing dependencies. So, to check whether oslo.concurrency is really installed or not, you should run

sudo tools/with_venv.sh pip list

As a final note, I would recommend installing again the dependencies; it would probably help. To do it:

sudo python tools/install_venv.py

Hope this helps!

Regards,

Federico Fernández

federicofdez commented 7 years ago

Seems to be solved...

I'll close the issue now, but feel free to reopen it!

BR