[Openstack-operators] Installing dashboard - can't find Python.h

Harlan H. Bloom harlan at bloomenterprises.org
Thu Oct 27 01:02:57 UTC 2011


Hello, 
I'm this is probably a newbie question, but I haven't been able to find an answer, in English anyways, for this error: 

Installing collected packages: xattr, pep8, pylint, coverage, glance, quantum, openstack, openstackx, python-novaclient, anyjson, amqplib, decorator, Tempita, greenlet, logilab-common, logilab-astng, httplib2, argparse, prettytable 
Running setup.py install for xattr 
building 'xattr._xattr' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c xattr/_xattr.c -o build/temp.linux-x86_64-2.7/xattr/_xattr.o 
xattr/_xattr.c:1:20: fatal error: Python.h: No such file or directory 
compilation terminated. 
error: command 'gcc' failed with exit status 1 
Complete output from command /home/harlan/horizon/openstack-dashboard/.dashboard-venv/bin/python -c "import setuptools;__file__='/home/harlan/horizon/openstack-dashboard/.dashboard-venv/build/xattr/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-04M8XA-record/install-record.txt --install-headers /home/harlan/horizon/openstack-dashboard/.dashboard-venv/include/site/python2.7: 
running install 

running build 

running build_py 

running build_ext 

building 'xattr._xattr' extension 

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c xattr/_xattr.c -o build/temp.linux-x86_64-2.7/xattr/_xattr.o 

xattr/_xattr.c:1:20: fatal error: Python.h: No such file or directory 

compilation terminated. 

error: command 'gcc' failed with exit status 1 

---------------------------------------- 
Command /home/harlan/horizon/openstack-dashboard/.dashboard-venv/bin/python -c "import setuptools;__file__='/home/harlan/horizon/openstack-dashboard/.dashboard-venv/build/xattr/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-04M8XA-record/install-record.txt --install-headers /home/harlan/horizon/openstack-dashboard/.dashboard-venv/include/site/python2.7 failed with error code 1 
Storing complete log in /home/harlan/.pip/pip.log 
Command "/home/harlan/horizon/openstack-dashboard/tools/with_venv.sh pip install -E /home/harlan/horizon/openstack-dashboard/.dashboard-venv -r /home/harlan/horizon/openstack-dashboard/tools/pip-requires" failed. 
None 

I'm installing this on Ubuntu Server 11.10. 

Any ideas or suggestions? Please let me know if you need any more information. 

Thanks, 

Harlan... 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111026/6ced2372/attachment-0002.html>


More information about the Openstack-operators mailing list