Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I tracked down the problem to two lines in the libraries:

import pigpio

and

bus = smbus.SMBus(1)

Running this command solved the first problem

sudo chown root.gpio /dev/gpiomem && sudo chmod a+x /dev/gpiomem

To fix the second one, I had to modify 99-com.rules .

/etc/udev/rules.d/99-com.rules

It was only necessary to change the mode corresponding to i2c-dev to 0777 (read/write for all).

SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0777"

Come to think of it, I could do the same for the gpio line and probably fix both issues using this file.

I tracked down the problem to these two lines in the libraries:

import pigpio

and

bus = smbus.SMBus(1)

Running this command solved the first problem

sudo chown root.gpio /dev/gpiomem && sudo chmod a+x /dev/gpiomem

To fix the second one, I had to modify 99-com.rules .

/etc/udev/rules.d/99-com.rules

It was only necessary to change the mode corresponding to i2c-dev to 0777 (read/write for all).

SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0777"

Come to think of it, I could do the same for the gpio line and probably fix both issues using this file.