Skip to content

GPIO - Access #1056

@DonMaverick

Description

@DonMaverick

Hello together,

I use your image on various Raspberrys.
After an update the Python "import RPi.GPIO as GPIO" seems to have changed.

Now I get an error message in your container when I execute my script
"RuntimeError: This module can only be run on a Raspberry Pi! "

Do you have an idea? How I can control my GPIOs from your image / container against my GPIOs?

Best regards

Info:
FROM php:7.2-apache

docker run -d -p 80:80 --restart always -v ~/Container_PI_Garten/daten:/var/www/html --privileged --device=/dev/bus/usb/001/003 --device=/dev/gpiomem --name pi pi

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions