flyte / mqtt-io

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
MIT License
470 stars 159 forks source link

Does not run on Raspberry Pi 4 aarch64 architecture using Docker (ModuleNotFoundError: No module named 'RPi' error) #416

Open megapearl opened 3 weeks ago

megapearl commented 3 weeks ago

Describe the bug When running by docker at Aarch64 architecture on a raspberry pi 4 it gives an error upon startup.

Expected behavior Should run on aarch64 architecture

Error messages and traceback

ModuleNotFoundError: No module named 'RPi' error

Config

N/A it does not even start.

Hardware

System:

Additional context When I add 'RPi-GPIO' to pyproject.toml AND 'pip install RPi.GPIO adafruit-blinka' to Dockerfile using:

    sed -i '/^\[tool.poetry.dependencies\]/a RPi-GPIO = "^0.7.1"' pyproject.toml
    sed -i '/COPY pyproject.toml .\//a RUN pip install RPi.GPIO adafruit-blinka' Dockerfile

And rebuild the docker it runs fine on my aarch64 architecture raspberry pi4