Open mikejrh opened 2 years ago
I also got the same error message. Not sure where to turn from here.
It seems like RPi.GPIO does not follow modern linking conventions, so gcc complains. I was able to install by telling gcc that this is legacy code like this:
CFLAGS=-fcommon pip install RPi.GPIO
References:
I get the following error message when trying to install callattendant in the virtual environment
Building wheels for collected packages: RPi.GPIO Building wheel for RPi.GPIO (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/pi/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-svnjf43h/rpi-gpio_50fc5284668e4483af35739ed49ea1a5/setup.py'"'"'; file='"'"'/tmp/pip-install-svnjf43h/rpi-gpio_50fc5284668e4483af35739ed49ea1a5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdistwheel -d /tmp/pip-wheel-489lebh cwd: /tmp/pip-install-svnjf43h/rpi-gpio_50fc5284668e4483af35739ed49ea1a5/