Savanna Call after installation

Asked by sarita

I had created a virtual environment and install sabvanna in it. but when I am going to call savanna its giving me error .

Error is as follows as:

 savanna-venv/bin/python savanna-venv/bin/savanna-api --config-file savanna-venv/etc/savanna.conf
Traceback (most recent call last):
  File "savanna-venv/bin/savanna-api", line 6, in <module>
    from savanna.cli.savanna_api import main
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/cli/savanna _api.py", line 40, in <module>
    from savanna.db import api as db_api
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/db/__init__ .py", line 21, in <module>
    from savanna.db.api import * # noqa
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/db/api.py", line 36, in <module>
    from savanna.openstack.common.db import api as db_api
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/openstack/c ommon/db/api.py", line 44, in <module>
    from savanna.openstack.common import lockutils
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/openstack/c ommon/lockutils.py", line 29, in <module>
    from savanna.openstack.common import fileutils
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/openstack/c ommon/fileutils.py", line 23, in <module>
    from savanna.openstack.common import excutils
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/openstack/c ommon/excutils.py", line 29, in <module>
    from savanna.openstack.common.gettextutils import _ # noqa
  File "/root/savanna-venv/local/lib/python2.7/site-packages/savanna/openstack/c ommon/gettextutils.py", line 37, in <module>
    from babel import localedata
ImportError: No module named babel

How to overcome from this problem ?

Question information

Language:
English Edit question
Status:
Solved
For:
Sahara Edit question
Assignee:
No assignee Edit question
Solved by:
ruhe
Solved:
Last query:
Last reply:
Revision history for this message
Best ruhe (ruhe) said :
#1

You probably installed Savanna using the following command:
$ savanna-venv/bin/pip install 'http://tarballs.openstack.org/savanna/savanna-master.tar.gz'

Please note, that this will install latest development version from the master branch which can be sometimes broken. And it is broken at this time. I filed a bug for this - https://bugs.launchpad.net/savanna/+bug/1219191

In order to use the latest stable release 0.2.1 you need to use the following command to install Savanna:
$ savanna-venv/bin/pip install savanna

Revision history for this message
sarita (sarita18narwal) said :
#2

Thanks Ruslan Kamaldinov, that solved my question.