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

Installing RPi.GPIO fails with Python 3.9 #87

Open
joukos opened this issue Jan 22, 2022 · 1 comment
Open

Installing RPi.GPIO fails with Python 3.9 #87

joukos opened this issue Jan 22, 2022 · 1 comment

Comments

@joukos
Copy link
Owner

joukos commented Jan 22, 2022

Turns out the latest Raspberry Pi OS "Bullseye" uses Python 3.9 and RPi.GPIO does not yet play along with it nicely: https://raspberrypi.stackexchange.com/a/135164.

To work around this for now, update the dependencies section [tool.poetry.dependencies] in pyproject.toml by changing:

"RPi.GPIO" = "^0.7.0"

To:

"RPi.GPIO" = [
    {version = "^0.7.0", python = "<3.9"},
    {version = "^0.7.1a4*", python = "^3.9", allow-prereleases = true}
]

Then run poetry update.

(Interestingly the asterisk at the end is needed for it to work)

Will push the changes for this after testing it a bit more.

@mahood73
Copy link

mahood73 commented Apr 6, 2023

I ran into this problem today, but it's easier to fix now 0.7.1 is out. Change that requirement to:
"RPi.GPIO" = "^0.7.1"

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

2 participants