Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4848

Troubleshooting • Re: Is there a way to use RPi._GPIO in docker without --privileged?

$
0
0
RPi.GPIO is not the same as RPIO. They are both Python GPIO modules and have a lot of functional commonality. Which are you trying to use?

What is your goal in using these modules?
I tried both, one that comes from pypi/pip, RPi.GPIO, and from the repo I mentioned above (clone then pip install the root dir of the repo). Both gave the same result, assuming I didn't do a mistake or something.

All I want to do is be able to run a command with a command line argument on some python script, and be able to switch a given pin HIGH and LOW, simulating a button press.

I have this system that has been working fine for over a decade (with docker for 3 years)... suddenly, it doesn't work anymore and I had to make the container privileged. I don't know where the problem is coming from.

Statistics: Posted by Gumdrop — Thu Aug 01, 2024 10:21 am



Viewing all articles
Browse latest Browse all 4848

Trending Articles