Open sacanalysis opened 2 years ago
Hi,
We are aware of this problem and seeking to fix it. It has been caused by the upgrade from Raspbian 10 'Buster', to Raspbian 11 'Bullseye'. When they did this, they dropped support for wiringPi, the library we used to monitor and send signals via the GPIO pins.
We are working on fixing this, but in the mean time, I would be grateful if you could check if installing an older version of Raspbian would work. We expect the version found here should work:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2020-02-14/
Hi Bill,
We were trying to get RPG working on a Raspberry Pi 4 and ran into the following installation issues with setup.py and 'sudo pip3 install .'
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-uuhcjozl/setup.py'"'"'; file='"'"'/tmp/pip-req-build-uuhcjozl/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-record-3dluwojo/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/rpg Check the logs for full command output.
Searching for solutions for 'exit status 1' error, we came onto this thread https://stackoverflow.com/questions/58423367/how-to-fix-error-command-errored-out-with-exit-status-1-when-trying-to-inst
We tried updating pip / 'python3 -m pip install .' but got the output attached below. Not sure how to proceed. Will appreciate any ideas, Thanks for the package!
mageelab@raspberrypi:~/rpg $ python3 -m pip install . Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Processing /home/mageelab/rpg Preparing metadata (setup.py) ... done Building wheels for collected packages: rpg Building wheel for rpg (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running bdist_wheel running build running build_py running build_ext building '_rpigratings' extension arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c rpg/_rpigratings.c -o build/temp.linux-armv7l-cpython-39/rpg/_rpigratings.o -O3 rpg/_rpigratings.c:14:10: fatal error: wiringPi.h: No such file or directory 14 | #include
| ^
~~~ compilation terminated. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1 [end of output]note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rpg Running setup.py clean for rpg Failed to build rpg Installing collected packages: rpg Running setup.py install for rpg ... error error: subprocess-exited-with-error
× Running setup.py install for rpg did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running install /home/mageelab/.local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Install Failed You must run install with sudo running build running build_py creating build creating build/lib.linux-armv7l-cpython-39 creating build/lib.linux-armv7l-cpython-39/rpg copying rpg/init.py -> build/lib.linux-armv7l-cpython-39/rpg running build_ext building '_rpigratings' extension creating build/temp.linux-armv7l-cpython-39 creating build/temp.linux-armv7l-cpython-39/rpg arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c rpg/_rpigratings.c -o build/temp.linux-armv7l-cpython-39/rpg/_rpigratings.o -O3 rpg/_rpigratings.c:14:10: fatal error: wiringPi.h: No such file or directory 14 | #include
| ^
~~~ compilation terminated. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1 [end of output]