I2C problem with remote Raspberry pi
I am running WingIDE6.0 remotely connected to a Raspberry Pi. I can run a normal program no problem so I know it works. I have a program that imports smbus for I2C access. The program runs fine from the RPi console but,when I run it using Wing IDE I get an error which is:
IOError: [Errno 13] Permission denied.
Now, I can see that is it a permissions issue - but why? I have added the user to the i2c group but that didn't change things. The Wing IDE connection is SSH with keys (is no password) and it is the same user as the RPi login so there should not be a problem with permissions.The actual instruction that fails is:
self._bus = smbus.SMBus(twi)
If this is a restriction for some reason then I'm stuck as I do a lot of native I/O on the RPi.
Comments