pip install python-novaclient is failing due to netifaces.c
Question: I'm trying to install OpenStack python novaclient using pip install python-
novaclient This task fails: netifaces.c:185:6 #error You need to add code for
your platform

I have no idea what code it wants. Does anyone understand this?


Answer: This has to do with the order that libraries are imported in the netifaces
setup.py and is fixed in version 10.3+ (which you need to install from
source). Here's how to install 10.4 (current latest release):

    
    
    mkdir -p /tmp/install/netifaces/
    cd /tmp/install/netifaces && wget -O "netifaces-0.10.4.tar.gz" "https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0012eb1e"
    tar xvzf netifaces-0.10.4.tar.gz
    cd netifaces-0.10.4 && python setup.py install
    

