yoctopuce / yoctolib_python

Official Yoctopuce Library for Python
https://www.yoctopuce.com/EN/article/how-to-start-in-python-with-yoctopuce-modulesp
20 stars 12 forks source link

Error at Hub connexion with version 1.54037 of Yoctopuce python API #8

Closed arslogavitabrevis closed 1 year ago

arslogavitabrevis commented 1 year ago

I upgrade the Yoctopuce API to the version 1.54037 and I got an error at initialisation.

Here is the stack trace:

  File "/home/user/.local/lib/python3.10/site-packages/yoctopuce/yocto_api.py", line 2436, in RegisterHub
    res = YAPI.InitAPI(0, errmsg)
  File "/home/user/.local/lib/python3.10/site-packages/yoctopuce/yocto_api.py", line 2304, in InitAPI
    YAPI.yloadYapiCDLL()
  File "/home/user/.local/lib/python3.10/site-packages/yoctopuce/yocto_api.py", line 1294, in yloadYapiCDLL
    YAPI._yapiGetNextHubRef = YAPI._yApiCLib.yapiGetNextHubRef
  File "/usr/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/user/.local/lib/python3.10/site-packages/yoctopuce/cdll/libyapi-amd64.so: undefined symbol: yapiGetNextHubRef

Downgrading to 1.1053532 resolved the problem.

srinsoz commented 1 year ago

You have right. We will release a new build with the fix very soon.

srinsoz commented 1 year ago

Hi, the new build 1.10.54070 fix this issue. You just need to update the Yoctopuce python library. Sorry for this mistake.