-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
RuntimeError: This module can only be run on a Raspberry Pi! #100
Comments
Same error here, was working before. After updating HA to 2024.1 things stopped working. Add-on version: 0.4.0
|
Same Problem Tryed to
My System My mqtt-io/config.yml:
My Error Log
|
The most falling apart plugin. If it doesn't update, it stops working. Version 0.4.0 I have the same problem as the guys above. Don't touch him already, let him work as he worked. Yeah, well, I'm gonna go build my own mqttio plugin, with blackjack and hookers. |
Here the same error in a similar addon. The error only occurs in HA OS 11.3 or 11.4. |
Thanks @gmoelter for the tip on downgrading HA OS I have workaround/hack with mqtt-io addon 0.4.0 after downgrading to HA OS 11.2 and turning off protection mode on the plugin settings
|
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
The Problem is still there, |
Today i have installed the new Version of HomeAssistant OS, but the problem ist still the same :( The Plugin Version MQTT IO |
The RPi.GPIO library should be updated [https://github.com/home-assistant/operating-system/issues/3094]. |
Feel free to report it there. Be aware there weren't any updates since 2022: https://sourceforge.net/projects/raspberry-gpio-python/ |
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. |
I just fixed this bug in my fork of RPi.GPIO: https://github.com/mrk-its/raspberry-gpio-python, and put following line in addon's mqtt-io/requirements.txt:
|
Freshly installed HA on RPI4 crashes:
[19:47:39] INFO: Starting MQTT IO...
2024-01-07 19:47:44 mqtt_io.main [ERROR] MqttIo crashed!
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 107, in main
mqtt_gpio.run()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 1269, in run
self._init_gpio_modules()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 244, in _init_gpio_modules
self.gpio_modules[gpio_config["name"]] = _init_module(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/init.py", line 106, in init
self.setup_module()
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/raspberrypi.py", line 25, in setup_module
import RPi.GPIO as gpio # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/RPi/GPIO/init.py", line 23, in
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 115, in
main()
File "/usr/lib/python3.11/site-packages/mqtt_io/main.py", line 107, in main
mqtt_gpio.run()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 1269, in run
self._init_gpio_modules()
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 244, in _init_gpio_modules
self.gpio_modules[gpio_config["name"]] = _init_module(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/init.py", line 106, in init
self.setup_module()
File "/usr/lib/python3.11/site-packages/mqtt_io/modules/gpio/raspberrypi.py", line 25, in setup_module
import RPi.GPIO as gpio # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/RPi/GPIO/init.py", line 23, in
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
[19:47:44] INFO: Service MQTT IO exited with code 1 (by signal 0
My config file:
mqtt:
host: core-mosquitto
port: 1883
user: ""
password: ""
topic_prefix: ha
ha_discovery:
enabled: yes
gpio_modules:
module: raspberrypi
#digital_outputs:
- name: dioda_1
module: rpi
pin: 1
digital_inputs:
module: rpi
pin: 0
pullup: no
module: rpi
pin: 1
pullup: no
module: rpi
pin: 2
pullup: no
module: rpi
pin: 3
pullup: no
Any help?
The text was updated successfully, but these errors were encountered: