Forum >Permission error - Husklens test program
Permission error - Husklens test program

Hello-
I connected the Husklens to a Raspberry Pi4B and downloaded the library and test program. When I attempt to run it I get this error:
[email protected]:~/python/huskylens $ python3 test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
test = HuskyLensLibrary("I2C","",address=0x32)
File "/home/thealy/python/huskylens/huskylensPythonLibrary.py", line 88, in __init__
self.huskylensSer= smbus.SMBus(channel)
PermissionError: [Errno 13] Permission denied
I'm not sure this is permission for I2C or what?
Any suggestions appreciated.
I connected the Husklens to a Raspberry Pi4B and downloaded the library and test program. When I attempt to run it I get this error:
[email protected]:~/python/huskylens $ python3 test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
test = HuskyLensLibrary("I2C","",address=0x32)
File "/home/thealy/python/huskylens/huskylensPythonLibrary.py", line 88, in __init__
self.huskylensSer= smbus.SMBus(channel)
PermissionError: [Errno 13] Permission denied
I'm not sure this is permission for I2C or what?
Any suggestions appreciated.
2020-07-08 02:10:49 Hello, I think you should try the following script:
sudo python3 test.py
Please use sudo to get the enough permission.
Youyou
sudo python3 test.py
Please use sudo to get the enough permission.
