-
Notifications
You must be signed in to change notification settings - Fork 35
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
Raspberry Pi 5 Support #53
Comments
Thank you for your information about the deprecation of RPi.GPIO. |
Hi rewse, I've updated this to use the gpiozero and uploaded it to the testpypi instead of pypi. Would you please confirm this and tell me the result? Thank you for your contribution. site of testpypi
After it is confirmed, I'll upload this to pypi. |
Thank you for the super fast fix! The following error occurred. PinFactoryFallback: Falling back from lgpio: No module named 'lgpio'
However, I got a correct value after installing lgpio with reference to gpiozero/gpiozero#1120 .
|
Thank you for your continued cooperation in providing useful information. The gpiozero seems to depend on the lgpio, however, gpiozero's setup.py does not have this dependency description. |
I've uploaded my latest package to the PyPI as version 3.1.5. |
Confirmed. Thank you!
|
The RPi.GPIO lib dependency is still listed in the pypy/setup.py file. I'm suggesting this cause I'm currently having install issues on my zero2. (/etc/debian_version -> 12.9 and Python 3.11.2) uv pip install mh-z19
Resolved 14 packages in 5.97s
Built mh-z19==3.1.6
Built getrpimodel==0.1.26
× Failed to build `rpi-gpio==0.7.1`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)
[stdout]
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-311/RPi
copying RPi/__init__.py -> build/lib.linux-aarch64-cpython-311/RPi
creating build/lib.linux-aarch64-cpython-311/RPi/GPIO
copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-cpython-311/RPi/GPIO
running build_ext
building 'RPi._GPIO' extension
creating build/temp.linux-aarch64-cpython-311/source
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
-I/home/maki/.cache/uv/builds-v0/.tmp9QJJRH/include -I/usr/include/python3.11 -c source/c_gpio.c -o build/temp.linux-aarch64-cpython-311/source/c_gpio.o
aarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
-I/home/maki/.cache/uv/builds-v0/.tmp9QJJRH/include -I/usr/include/python3.11 -c source/common.c -o build/temp.linux-aarch64-cpython-311/source/common.o
[stderr]
source/c_gpio.c: In function ‘setup’:
source/c_gpio.c:170:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
170 | if ((uint32_t)gpio_mem % PAGE_SIZE)
| ^
source/c_gpio.c:171:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
171 | gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
| ^
source/common.c:23:10: fatal error: Python.h: No such file or directory
23 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
hint: This error likely indicates that you need to install a library that provides "Python.h" for `rpi-gpio@0.7.1`
help: `rpi-gpio` (v0.7.1) was included because `mh-z19` (v3.1.6) depends on `rpi-gpio` |
Hi mroelandts, thank you for your report. |
Hi mroelandts, I've dropped the RPi.GPIO dependency and uploaded it to PyPI as version 3.1.7. |
Thanks! Works great. |
mh_z19 3.1.3 doesn’t work with Raspberry Pi 5 because the dependent RPi.GPIO 0.7.1 doesn’t work with it.
It seems RPi.GPIO is no longer maintained because of no response to the ticket to support RP5. The official RP doc is using gpiozero to access GPIO.
The text was updated successfully, but these errors were encountered: