ImportError: cannot import name v1_1

Asked by Neil Andrews on 2011-08-16

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

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
2011-08-17
Last query:
2011-08-17
Last reply:
2011-08-16
Best Vish Ishaya (vishvananda) said : #1

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/+question/168178
>
> 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).

Neil Andrews (neil-andrews89) said : #2

Thanks Vish Ishaya, that solved my question.