Zulko / gizeh

Simple Vector Graphics for Python
Other
702 stars 70 forks source link

error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 #27

Open gukenschlaven opened 8 years ago

gukenschlaven commented 8 years ago

Hello,

I was trying to install gizeh on Ubuntu 14.04, running Python 2.7.6 using file setup.py by using the command: sudo python setup.py install

I get an error message: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I will attach below the full text of the terminal output during the attempted install process. Any help or thoughts on how I can get this to install would be appreciated. Thank you.

Terminal output from install process: running install running bdist_egg running egg_info writing requirements to gizeh.egg-info/requires.txt writing gizeh.egg-info/PKG-INFO writing top-level names to gizeh.egg-info/top_level.txt writing dependency_links to gizeh.egg-info/dependency_links.txt reading manifest file 'gizeh.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.txt' under directory 'examples' writing manifest file 'gizeh.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/gizeh copying build/lib.linux-x86_64-2.7/gizeh/init.py -> build/bdist.linux-x86_64/egg/gizeh copying build/lib.linux-x86_64-2.7/gizeh/tools.py -> build/bdist.linux-x86_64/egg/gizeh copying build/lib.linux-x86_64-2.7/gizeh/geometry.py -> build/bdist.linux-x86_64/egg/gizeh copying build/lib.linux-x86_64-2.7/gizeh/gizeh.py -> build/bdist.linux-x86_64/egg/gizeh copying build/lib.linux-x86_64-2.7/gizeh/version.py -> build/bdist.linux-x86_64/egg/gizeh byte-compiling build/bdist.linux-x86_64/egg/gizeh/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/gizeh/tools.py to tools.pyc byte-compiling build/bdist.linux-x86_64/egg/gizeh/geometry.py to geometry.pyc byte-compiling build/bdist.linux-x86_64/egg/gizeh/gizeh.py to gizeh.pyc byte-compiling build/bdist.linux-x86_64/egg/gizeh/version.py to version.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying gizeh.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying gizeh.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying gizeh.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying gizeh.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying gizeh.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist/gizeh-0.1.10-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing gizeh-0.1.10-py2.7.egg Removing /usr/local/lib/python2.7/dist-packages/gizeh-0.1.10-py2.7.egg Copying gizeh-0.1.10-py2.7.egg to /usr/local/lib/python2.7/dist-packages gizeh 0.1.10 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/gizeh-0.1.10-py2.7.egg Processing dependencies for gizeh==0.1.10 Searching for cairocffi Reading https://pypi.python.org/simple/cairocffi/ Best match: cairocffi 0.7.2 Downloading https://pypi.python.org/packages/ea/82/5fc10cf35ac66b42c2e91a71732ea319c68f58ba7c759f97d593a9bf6ffd/cairocffi-0.7.2.tar.gz#md5=b7b6a5908f4180deee84f07bcc14253d Processing cairocffi-0.7.2.tar.gz Writing /tmp/easy_install-ihogst/cairocffi-0.7.2/setup.cfg Running cairocffi-0.7.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ihogst/cairocffi-0.7.2/egg-dist-tmp-VUldm7 c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory

include

                ^

compilation terminated. error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

cramshaw commented 8 years ago

Have you tried installing the packages mentioned here? I seem to remember that helped me: http://stackoverflow.com/questions/26053982/error-setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-wit Personally I install cairo first with sudo apt-get install libcairo2-dev then sudo pip install gizeh

SharkWu commented 5 years ago

very thanks!