@Richard238 wrote:
This might help someone:
I formatted a spare SD card and loaded NOOBS.
Installed Raspbian Jessie, and ran the : sudo pip install unicornhat --upgrade command
Failed.
Searched on this error message: Python.h: No such file or directory
Ran this command sudo apt-get install python2.7-dev
Re-ran the : sudo pip install unicornhat --upgrade command
Seems OK, yet to be tested fully.
Full text of error:
pi@raspberrypi ~ $ sudo pip install unicornhat --upgrade
Downloading/unpacking unicornhat
Downloading unicornhat-2.0.4.tar.gz
Running setup.py (path:/tmp/pip-build-KaRTg6/unicornhat/setup.py) egg_info for package unicornhatDownloading/unpacking rpi-ws281x>=1.1.0 (from unicornhat)
Downloading rpi_ws281x-1.2.1.tar.gz (117kB): 117kB downloaded
Running setup.py (path:/tmp/pip-build-KaRTg6/rpi-ws281x/setup.py) egg_info for package rpi-ws281xInstalling collected packages: unicornhat, rpi-ws281x
Running setup.py install for unicornhatRunning setup.py install for rpi-ws281x
Compiling ws281x library...
building 'rpiws281x' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Ilib/ -I/usr/include/python2.7 -c rpi_ws281x_wrap.c -o build/temp.linux-armv6l-2.7/rpi_ws281x_wrap.o
rpi_ws281x_wrap.c:125:20: fatal error: Python.h: No such file or directory
#include
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-KaRTg6/rpi-ws281x/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-M5rcJA-record/install-record.txt --single-version-externally-managed --compile:
running installrunning build
running build_py
Compiling ws281x library...
creating build
creating build/lib.linux-armv6l-2.7
copying neopixel.py -> build/lib.linux-armv6l-2.7
running build_ext
building 'rpiws281x' extension
creating build/temp.linux-armv6l-2.7
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Ilib/ -I/usr/include/python2.7 -c rpi_ws281x_wrap.c -o build/temp.linux-armv6l-2.7/rpi_ws281x_wrap.o
rpi_ws281x_wrap.c:125:20: fatal error: Python.h: No such file or directory
#include
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-KaRTg6/rpi-ws281x/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-M5rcJA-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-KaRTg6/rpi-ws281x
Storing debug log for failure in /root/.pip/pip.log
Posts: 5
Participants: 3