Page 1 of 1

Huskylens API (Error: SMBus object has no attribute 'timeout')

Unread postPosted:Wed Nov 11, 2020 3:44 pm
by kurt.feusi
Having installed the required modules, etc I am testing with the exampleHL.py on a Rasperry Pi4.
Message 'knock' (a.) is giving back 'knock received' -> so I think Huskylens is working
However: When trying 'Set Custom Name' (b.) I get eror: SMBus object has no attribute 'timeout'

same when trying 'customText' (c.), same error but displaying 'hl' on screen.
same when trying 'clearText' (d.), same error and text 'hl' is cleared.

Is there anything missing on the installation (which is made according instructions) ?

Re: Huskylens API (Error: SMBus object has no attribute 'timeout')

Unread postPosted:Sat Dec 05, 2020 11:27 pm
by schiller_andi
same problem here.. I´m following your post..

cheers :-)

Re: Huskylens API (Error: SMBus object has no attribute 'timeout')

Unread postPosted:Fri Dec 18, 2020 10:02 am
by lucadagostino84
same error, do you solve it?

Re: Huskylens API (Error: SMBus object has no attribute 'timeout')

Unread postPosted:Fri Feb 26, 2021 3:23 am
by danielmeireles
Same problem, aftter run a simple test:
Code: Select all
from huskylib import HuskyLensLibrary

hl= HuskyLensLibrary("I2C","",address=0x32)
print(hl.knock())

#Description: Get the number of frame HUSKYLENS have processed.
print("frameNumber:", hl.frameNumber())

#Description: Get the number of learned and unlearned objects on the screen.
print("count:", hl.count())

#Description: Get the total number of learned objects for the current running algorithm, objects do not need to be present on screen.
print("learnedObjCount:", hl.learnedObjCount())

hl.algorthim("ALGORITHM_OBJECT_CLASSIFICATION")

Traceback (most recent call last):
File "Test.py", line 16, in <module>
hl.algorthim("ALGORITHM_OBJECT_CLASSIFICATION")
File "/huskylib.py", line 387, in algorthim
return self.processReturnData()
File "/huskylib.py", line 217, in processReturnData
self.huskylensSer.timeout=5
AttributeError: 'SMBus' object has no attribute 'timeout'