nova image-list

asked 2015-01-21 12:41:42 -0600

sumeshkollam gravatar image

updated 2015-01-21 14:16:58 -0600

After the installation of nova in openstack icehouse in ubuntu 14.04 lts server. When I execute the following command nova image-list
I am getting the following:

 Traceback (most recent call last):
      File "/usr/local/bin/nova", line 7, in <module>
        from import main
      File "/usr/local/lib/python2.7/dist-packages/novaclient/", line 47, in <module>
        from novaclient import client
      File "/usr/local/lib/python2.7/dist-packages/novaclient/", line 34, in <module>
        from oslo.utils import netutils
      File "/usr/local/lib/python2.7/dist-packages/oslo/utils/", line 13, in <module>
        from oslo_utils.netutils import *  # noqa
      File "/usr/local/lib/python2.7/dist-packages/oslo_utils/", line 24, in <module>
        import netifaces
    ImportError: No module named netifaces

I have successfuly installed mysql, keystone and glance services.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-21 14:02:18 -0600

AlanObject gravatar image

It looks to me like you are missing one or more Python modules -- in this case one called netifaces. Make sure you did the apt-gets the install manual lists. Look on page 26 of the Juno install guide.

edit flag offensive delete link more

answered 2015-01-21 14:23:13 -0600

It sounds like you have not successful installation of python netifaces module. Try the following line, to install netifaces. It may solve the problem:

pip install netifaces
edit flag offensive delete link more


thank you for your kind response As per your suggestion i applied the command pip install netifaces but this leads to another error

netifaces.c:1:20: fatal error: Python.h: No such file or directory #include <python.h> ^ compilation terminated.

error: command 'x86_64-linux-g

sumeshkollam gravatar imagesumeshkollam ( 2015-01-22 00:40:43 -0600 )edit

Hi there, I have the same problem after executed pip install netifaces:

netifaces.c:1:20: fatal error: Python.h: No such file or directory #include <python.h> ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

tattabbum gravatar imagetattabbum ( 2015-02-06 04:54:09 -0600 )edit

Hi there, I solved installing:

apt-get install python-dev

tattabbum gravatar imagetattabbum ( 2015-02-06 04:56:22 -0600 )edit

Encountered while installing CLI's via pip on 14.04.2. First issue was with requests, solved with help from this comment: ( all would then install clean except nova. python-dev and then 'pip install netifaces' worked.

yoshi gravatar imageyoshi ( 2015-05-24 14:07:04 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-01-21 12:41:42 -0600

Seen: 1,556 times

Last updated: Jan 21 '15