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

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

Open
megapearl opened this issue Oct 30, 2024 · 0 comments

Comments

@megapearl
Copy link

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

  • Platform: [Raspberry Pi4 ]
  • Connected hardware: [N/A]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant