Ask Your Question

"No module named config" installing Sahara Juno on Ubuntu 14.04

asked 2014-12-01 16:24:37 -0500

Nastooh gravatar image

updated 2014-12-01 20:08:59 -0500

smaffulli gravatar image

Trying to install Juno-Sahara under Ubuntu Trusty. Installed sahara using pip, and seem to have the latest version:

# pip list | grep sahara
python-saharaclient (0.7.3)
sahara (2014.2)

Created a /etc/sahara/sahara.conf file, as per . However, I get an error during sahara-db-manage:

# sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head --debug -v
Traceback (most recent call last):
  File "/usr/local/bin/sahara-db-manage", line 7, in <module>
    from sahara.db.migration.cli import main
  File "/usr/local/lib/python2.7/dist-packages/sahara/db/", line 20, in <module>
    from sahara.db.api import *  # noqa
  File "/usr/local/lib/python2.7/dist-packages/sahara/db/", line 34, in <module>
    from oslo.config import cfg
ImportError: No module named config

Any thoughts or alternatives as how to create db schema?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-01 16:46:07 -0500

dmitrymex gravatar image

updated 2014-12-01 16:50:48 -0500

I think that is the issue with namespaces: your python does not see oslo.config, while it is installed. Try reinstalling it, like

pip uninstall oslo.config
pip install oslo.config

If it does not help, probably just plain reinstall from scratch will help.

edit flag offensive delete link more


Thank you for your prompt reply. Indeed that was the case. Had to do the same for oslo.[db, utils, i18n]

Nastooh gravatar imageNastooh ( 2014-12-01 17:08:49 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-01 16:24:37 -0500

Seen: 4,935 times

Last updated: Dec 01 '14