requirements.txt - error: command 'gcc' failed with exit status 1

282 views
Skip to first unread message

Nik B

unread,
Mar 30, 2013, 2:15:43 PM3/30/13
to opentree...@googlegroups.com
Hello,

I'm hoping someone can help me sort out the error(s) I'm running into while using requirements.txt to install the program specs for open tree map.

The error(s) I'm getting is as follows:

i686-2.7/_imaging.o
_imaging.c:75:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/var/www/opentreemap
/build/PIL/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" in
stall --single-version-externally-managed --record /tmp/pip-eoeDwE-record/install-record.txt:
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
running install
running build
running build_py
running build_ext
building '_imaging' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -IlibImagin
g -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c _imaging.c -o build/temp.linux-i686
-2.7/_imaging.o
_imaging.c:75:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/var/www/opentreemap/build/PIL/setup.py';exec
(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-ex
ternally-managed --record /tmp/pip-eoeDwE-record/install-record.txt failed with error code 1
Storing complete log in /root/.pip/pip.log

Many thanks in advance,

Nikesh.

Adam Hinz

unread,
Mar 30, 2013, 2:47:12 PM3/30/13
to opentree...@googlegroups.com
You probably need to:
apt-get install python-dev

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nik B

unread,
Mar 30, 2013, 6:20:26 PM3/30/13
to opentree...@googlegroups.com
How ridiculous of me. Thank you. That did the trick, indeed.

Just as a follow-up question.. Those patches and fixes that are delineated in the installing opentreemap walkthrough for v1.2... Are those necessary for v1.3 or have they been addressed?

Thanks!

Nikesh.

Adam Hinz

unread,
Mar 30, 2013, 6:51:06 PM3/30/13
to opentree...@googlegroups.com
Unfortunately all of the patches are still necessary. The goal is to
remove all such patched versions in the future.

-Adam

Sent from my iPhone

Bob Troester

unread,
Apr 1, 2013, 10:26:46 AM4/1/13
to opentree...@googlegroups.com
Nik,
Hi. For some other notes about installing 1.3, see my description of my converting from 1.2 to 1.3 last week (https://groups.google.com/forum/#!topic/opentreemap-user/__rbRiKIMVU). Not only are all the previous patches necessary if you hadn't already done them, but there is one more: a Tilecache TMS issue.
Also, check the releases of your python modules: I somehow got the 1.3.3 release of django-pipeline, which should be 1.1.27, and it was definitely not compatible.

BTW I've since gone beyond what is described in that post to a working, if flaky, map display. Still can't add trees through the browser, but that's the subject of another post.
Bob
Reply all
Reply to author
Forward
0 new messages