Closed glassbase closed 5 years ago
I run pip3 install -r requirements.txt and get (also tried with sudo)
pip3 install -r requirements.txt
Collecting python-lirc==1.2.3 (from -r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/20/37/5614ed0459439a96430e1aac479b6608b51e69ca0bd7d91277517d5895e9/python-lirc-1.2.3.tar.gz Collecting paho-mqtt==1.3 (from -r requirements.txt (line 2)) Using cached https://www.piwheels.org/simple/paho-mqtt/paho_mqtt-1.3.0-py3-none-any.whl Building wheels for collected packages: python-lirc Running setup.py bdist_wheel for python-lirc ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-48kj4bye/python-lirc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpmm8tstinpip-wheel- --python-tag cp35: running bdist_wheel running build running build_ext building 'lirc' extension creating build creating build/temp.linux-armv6l-3.5 creating build/temp.linux-armv6l-3.5/lirc arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/lirc/ -I/usr/include/python3.5m -c lirc/lirc.c -o build/temp.linux-armv6l-3.5/lirc/lirc.o lirc/lirc.c:276:30: fatal error: lirc/lirc_client.h: No such file or directory #include "lirc/lirc_client.h" ^ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for python-lirc Running setup.py clean for python-lirc Failed to build python-lirc Installing collected packages: python-lirc, paho-mqtt Found existing installation: python-lirc 1.2.1 Not uninstalling python-lirc at /usr/lib/python3/dist-packages, outside environment /usr Running setup.py install for python-lirc ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-48kj4bye/python-lirc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zwiaan5i-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'lirc' extension creating build creating build/temp.linux-armv6l-3.5 creating build/temp.linux-armv6l-3.5/lirc arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/lirc/ -I/usr/include/python3.5m -c lirc/lirc.c -o build/temp.linux-armv6l-3.5/lirc/lirc.o lirc/lirc.c:276:30: fatal error: lirc/lirc_client.h: No such file or directory #include "lirc/lirc_client.h" ^ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 ---------------------------------------- Can't rollback python-lirc, nothing uninstalled. Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-48kj4bye/python-lirc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zwiaan5i-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-48kj4bye/python-lirc/
Any idea what is wrong? Thanks for your help.
Maybe because I am on Raspbian Stretch?
I switched to using docker to this to work.
I run
pip3 install -r requirements.txt
and get (also tried with sudo)Any idea what is wrong? Thanks for your help.