Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtual build failing #159

Open
mikejrh opened this issue Dec 18, 2021 · 2 comments
Open

virtual build failing #159

mikejrh opened this issue Dec 18, 2021 · 2 comments

Comments

@mikejrh
Copy link

mikejrh commented Dec 18, 2021

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'"'"'))' bdist_wheel -d /tmp/pip-wheel-489lebh_
cwd: /tmp/pip-install-svnjf43h/rpi-gpio_50fc5284668e4483af35739ed49ea1a5/

@Peter-Gitman
Copy link

I also got the same error message. Not sure where to turn from here.

@tagatac
Copy link

tagatac commented Jan 25, 2022

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:

  1. https://askubuntu.com/a/1330210/267107
  2. https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants