Inner Exception: cannot import name Random from (pid=25725) import_class /root/openstack/nova/nova/utils.py:65
Hi, I have been trying to install Nova using XCP as the hypervisor. I've followed the instructions in the wiki page http://
Things went ok until I tried to run "run_tests.sh" in nova, then I get a weird problem. As pasted below.
root@rchang-
ERROR
=======
ERROR: <nose.suite.
-------
Traceback (most recent call last):
File "/usr/local/
self.setUp()
File "/usr/local/
self.
File "/usr/local/
try_
File "/usr/local/
return func()
File "/root/
from nova.network import manager as network_manager
File "/root/
from nova.compute import api as compute_api
File "/root/
from nova.compute.api import API
File "/root/
import nova.image
File "/root/
from nova.image import glance
File "/root/
from nova.image import service
ImportError: cannot import name service
-------
2011-11-24 14:09:37,313 DEBUG nova.utils [-] Inner Exception: cannot import name Random from (pid=25725) import_class /root/openstack
-------
-------
Ran 0 tests in 0.017s
FAILED (errors=1)
-------------
Another similar error occurs when I issue the command ./bin/nova-manage, I get the following:
root@rchang-
Traceback (most recent call last):
File "./bin/
from nova import image
File "/root/
from nova.image import glance
File "/root/
GlanceClient = utils.import_
File "/root/
raise exception.
nova.exception.
-------
It looks like when glance falls the "import_class" function, an error pops up.
I am running Nova 2011.3, and python 2.6.5
I tried searching for the random module in my system since it was not importing properly.
root@rchang-
/usr/lib/
/usr/local/
The correct file to import is /usr/lib/
Thinking that having two random.py file might be the issue, I've deleted the one in Crypto, but to no avail. I've also set $PYTHONPATH to /usr/lib/python2.6 and that is not working either.
Please assist. Any help would be appreciated!
Thanks,
Ronnie
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: