python3-gpiod icon indicating copy to clipboard operation
python3-gpiod copied to clipboard

gpiod_chip_open requires access to all gpio chips

Open mvargasevans opened this issue 3 years ago • 1 comments

Hi, First, thanks for writing this library.

During opening a chip with gpiod.chip("chip"), it happened to me that in my system an access denied took place. The reason is that I have 2 gpiochips, and only one of them is on the group with access control.

While looking at the open function, I believe that this has to do with open calling gpioinfo which requires access to all gpiochips. I can correct this in my system, but I wanted to ask if this is unavoidable, since it would be great that a usage of a gpiochip does not depend on the status of the other gpiochips.

Thanks

mvargasevans avatar Jul 22 '21 09:07 mvargasevans

I cannot understand your situation.

hhk7734 avatar Jul 26 '21 00:07 hhk7734