I guess it's a permission error.
After this action, the user should be able to write to the i2c bus.
If you try next time to access as normal user to a serial port, you'll get again an error.
In this case, you should add the user to the group
# shell, not Python usermod -G i2c -a USERNAME # then reboot or open a new login shell with: # su - USERNAMEYou can check your memberships in groups with the command
id
.After this action, the user should be able to write to the i2c bus.
If you try next time to access as normal user to a serial port, you'll get again an error.
In this case, you should add the user to the group
dialout
.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!