Ask Your Question
0

ImportError: cannot import name v1_1

asked 2011-08-16 17:59:31 -0500

Before I begin, this is my first error report, as such if I am doing thing incorrectly it is not intentional and I will do my best to fix what I did incorrectly. I am using a script to run the setup and it has worked several times up until yesterday and now I keep getting the following error after I did a clean install. Before that though here is what I do to install nova (a lot of code excluded for brevity): add-apt-repository ppa:nova-core/release apt-get install -y nova-common nova-doc python-nova nova-api nova-network nova-objectstore nova-scheduler

now when I try to run any kind of list from nova manage I get the error stated in the title, for example: nova-manage project list returns Traceback (most recent call last): File "/usr/bin/nova-manage", line 90, in <module> from nova.cloudpipe import pipelib File "/usr/lib/pymodules/python2.7/nova/cloudpipe/pipelib.py", line 39, in <module> from nova.api.ec2 import cloud File "/usr/lib/pymodules/python2.7/nova/api/ec2/cloud.py", line 35, in <module> from nova import compute File "/usr/lib/pymodules/python2.7/nova/compute/__init__.py", line 19, in <module> from nova.compute.api import API File "/usr/lib/pymodules/python2.7/nova/compute/api.py", line 36, in <module> from nova import volume File "/usr/lib/pymodules/python2.7/nova/volume/__init__.py", line 19, in <module> from nova.volume.api import API File "/usr/lib/pymodules/python2.7/nova/volume/api.py", line 36, in <module> flags.DECLARE('storage_availability_zone', 'nova.volume.manager') File "/usr/lib/pymodules/python2.7/nova/flags.py", line 245, in DECLARE __import__(module_string, globals(), locals()) File "/usr/lib/pymodules/python2.7/nova/volume/manager.py", line 50, in <module> from nova import manager File "/usr/lib/pymodules/python2.7/nova/manager.py", line 60, in <module> from nova.scheduler import api File "/usr/lib/pymodules/python2.7/nova/scheduler/api.py", line 20, in <module> from novaclient import v1_1 as novaclient ImportError: cannot import name v1_1

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2011-08-17 22:11:20 -0500

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more
0

answered 2011-08-16 18:20:33 -0500

vishvananda gravatar image

It looks like you need to update python-novaclient. It is in the trunk ppa. I'm not sure why you would be getting the error if you are using the release ppa.

add-apt-repository ppa:nova-core/trunk apt-get update apt-get install python-novaclient

On Aug 16, 2011, at 11:01 AM, Neil Andrews wrote:

New question #168178 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

Before I begin, this is my first error report, as such if I am doing thing incorrectly it is not intentional and I will do my best to fix what I did incorrectly. I am using a script to run the setup and it has worked several times up until yesterday and now I keep getting the following error after I did a clean install. Before that though here is what I do to install nova (a lot of code excluded for brevity): add-apt-repository ppa:nova-core/release apt-get install -y nova-common nova-doc python-nova nova-api nova-network nova-objectstore nova-scheduler

now when I try to run any kind of list from nova manage I get the error stated in the title, for example: nova-manage project list returns Traceback (most recent call last): File "/usr/bin/nova-manage", line 90, in <module> from nova.cloudpipe import pipelib File "/usr/lib/pymodules/python2.7/nova/cloudpipe/pipelib.py", line 39, in <module> from nova.api.ec2 import cloud File "/usr/lib/pymodules/python2.7/nova/api/ec2/cloud.py", line 35, in <module> from nova import compute File "/usr/lib/pymodules/python2.7/nova/compute/__init__.py", line 19, in <module> from nova.compute.api import API File "/usr/lib/pymodules/python2.7/nova/compute/api.py", line 36, in <module> from nova import volume File "/usr/lib/pymodules/python2.7/nova/volume/__init__.py", line 19, in <module> from nova.volume.api import API File "/usr/lib/pymodules/python2.7/nova/volume/api.py", line 36, in <module> flags.DECLARE('storage_availability_zone', 'nova.volume.manager') File "/usr/lib/pymodules/python2.7/nova/flags.py", line 245, in DECLARE __import__(module_string, globals(), locals()) File "/usr/lib/pymodules/python2.7/nova/volume/manager.py", line 50, in <module> from nova import manager File "/usr/lib/pymodules/python2.7/nova/manager.py", line 60, in <module> from nova.scheduler import api File "/usr/lib/pymodules/python2.7/nova/scheduler/api.py", line 20, in <module> from novaclient import v1_1 as novaclient ImportError: cannot import name v1_1


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-16 17:59:31 -0500

Seen: 27 times

Last updated: Aug 17 '11