ImportError: cannot import name exceptions

asked 2011-02-17 03:23:10 -0600

janson071 gravatar image

following this url:

http://wiki.openstack.org/NovaInstall/CentOSNotes (http://wiki.openstack.org/NovaInstall...)

to install Nova on CentOS5.5, when use this command:

nova-manage --flagfile /etc/nova/nova.conf db sync

to Create the Database, it occurs this error :

[root@localhost sqlalchemy]# nova-manage --flagfile /etc/nova/nova.conf db sync 2011-02-17 11:18:56,539 CRITICAL nova.root [-] cannot import name exceptions (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-manage", line 5, in <module> (nova.root): TRACE: pkg_resources.run_script('nova==2011.1', 'nova-manage') (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script (nova.root): TRACE: self.require(requires)[0].run_script(script_name, ns) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1207, in run_script (nova.root): TRACE: execfile(script_filename, namespace, namespace) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 694, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 686, in main (nova.root): TRACE: fn(*argv) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 565, in sync (nova.root): TRACE: return migration.db_sync(version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/migration.py", line 33, in db_sync (nova.root): TRACE: return IMPL.db_sync(version=version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 331, in __getattr__ (nova.root): TRACE: backend = self.__get_backend() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 326, in __get_backend (nova.root): TRACE: self.__backend = __import__(name, None, None, fromlist) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/sqlalchemy/migration.py", line 26, in <module> (nova.root): TRACE: from migrate.versioning import exceptions as versioning_exceptions (nova.root): TRACE: ImportError: cannot import name exceptions (nova.root): TRACE:

any suggestion ???

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2011-02-28 09:16:50 -0600

janson071 gravatar image

It's just because the version of sqlalchemy-migrate, select 0.6.0.

anything is OK

edit flag offensive delete link more
0

answered 2012-10-31 09:14:29 -0600

you might change keyword exceptions to exc

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-02-17 03:23:10 -0600

Seen: 1,216 times

Last updated: Oct 31 '12