HUSKYLENSGeneral

Permission error - Husklens test program

userHead Account cancelled 2020-07-05 22:37:22 2277 Views2 Replies
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.
2020-07-07 18:10:49 Hello, I think you should try the following script:
sudo python3 test.py
Please use sudo to get the enough permission.
userHeadPic Youyou