Closed Minims closed 2 years ago
I think this is related to : https://github.com/home-assistant/architecture/blob/master/adr/0019-GPIO.md
@Minims yes, I think this is related, since from 2022.6 RPI.GPIO isn't loaded. Please try adding https://github.com/thecode/ha-rpi_gpio, I hope this will help. Report back and I'll add a proper description or will continue to investigate.
It doesn't help, and I think this is normal. This integration will be loaded in my custom_component folder, and I think your code will try to load the smbus module from HA core.
3 ideas to check :
smbus
lib in your repo, update imports and use it ? argon40toMQTT
instead of a hacs integration.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
So, unable fix that?
Didn't have time (newborn at home), I'll try to find time as soon as I can
GPIO need an update since 2022.07.0. See PR #33 If you have issue after upgrading HA, delete and remove the add-on from HACS. It will reinstall the libs. I think HA uninstall GPIO libs on upgrade
Didn't have time (newborn at home), I'll try to find time as soon as I can
Сongratulations!
GPIO need an update since 2022.07.0. See PR #33 If you have issue after upgrading HA, delete and remove the add-on from HACS. It will reinstall the libs. I think HA uninstall GPIO libs on upgrade
Unable to install package RPi.GPIO==0.7.1a4: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-cpython-310 creating build/lib.linux-aarch64-cpython-310/RPi copying RPi/init.py -> build/lib.linux-aarch64-cpython-310/RPi creating build/lib.linux-aarch64-cpython-310/RPi/GPIO copying RPi/GPIO/init.py -> build/lib.linux-aarch64-cpython-310/RPi/GPIO running build_ext building 'RPi._GPIO' extension creating build/temp.linux-aarch64-cpython-310 creating build/temp.linux-aarch64-cpython-310/source gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.10 -c source/c_gpio.c -o build/temp.linux-aarch64-cpython-310/source/c_gpio.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for RPi.GPIO error: subprocess-exited-with-error × Running setup.py install for RPi.GPIO did not run successfully. │ exit code: 1 ╰─> [17 lines of output] running install /usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-aarch64-cpython-310 creating build/lib.linux-aarch64-cpython-310/RPi copying RPi/init.py -> build/lib.linux-aarch64-cpython-310/RPi creating build/lib.linux-aarch64-cpython-310/RPi/GPIO copying RPi/GPIO/init.py -> build/lib.linux-aarch64-cpython-310/RPi/GPIO running build_ext building 'RPi._GPIO' extension creating build/temp.linux-aarch64-cpython-310 creating build/temp.linux-aarch64-cpython-310/source gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.10 -c source/c_gpio.c -o build/temp.linux-aarch64-cpython-310/source/c_gpio.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> RPi.GPIO note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
RPi.GPIO==0.7.1a4 need to be set to 0.7.1 like in my PR. Waiting for merge
Confirmed working again with updated dependency
Thank you for solving this issue. I'll merge the PR and release new version
A new release is on the way
HA 2022.7.3 all work! Thank you!
@Minims I'm waiting for your feedback before closing this issue.
@Misiu All is Ok. Thanks !
Version of the custom_component
Configuration
Describe the bug
The integration cannot be load because this python module cannot be found :
Debug log