Hi,
I'm running in a python 3 script inside Docker ubuntu image on a Raspberri Pi 4 with ubuntu 18.04 installed, and I get the following error when trying use the library.
>>> from RPi import GPIO >>> GPIO.setup(12, GPIO.OUT) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: Mmap of GPIO registers failed
needed to add the
/dev/gpiomem
devicedocker container run --device /dev/gpiomem -d ubuntu
https://iotbytes.wordpress.com/create-your-first-docker-container-for-raspberry-pi-to-blink-an-led/
not sure how to close a ticket on this platform
Last edit: Patrick Wasp 2020-03-23