Closed YoannVarquet closed 5 months ago
Hi. This issue has been identified and will be fixed soon.
This issue should be fixed now. Could you validate that it solve your issue?
I am experiencing this issue on Ubuntu 20.04 and Ubuntu 18.04 with yoctopuce 2.0.61039. It is working fine on Ubuntu 22.04
File "/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/yocto_api.py", line 1122, in yloadYapiCDLL
YAPI._yApiCLib = ctypes.CDLL(YAPI._yApiCLibFile)
File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/user/project/venv/lib/python3.9/site-packages/yoctopuce/cdll/libyapi-amd64.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/project/venv/lib/python3.9/site-packages/relay_yocto_olc/yocto_relay.py", line 33, in __init__
if YAPI.RegisterHub("usb", errmsg) != YAPI.SUCCESS:
File "/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/yocto_api.py", line 2504, in RegisterHub
res = YAPI.InitAPI(0, errmsg)
File "/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/yocto_api.py", line 2372, in InitAPI
YAPI.yloadYapiCDLL()
File "/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/yocto_api.py", line 1125, in yloadYapiCDLL
raise ImportError(
ImportError: Unable to import YAPI shared library (/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/cdll/libyapi-amd64.so): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/user/project/venv/lib/python3.9/site-packages/yoctopuce/cdll/libyapi-amd64.so)
We have been able to reproduce your issue. We should have a fix very soon.
That's great news. Thanks for the prompt response!
For others running into similar issues, here's how I fixed it in the meantime:
sudo apt-get install libusb-1.0-0-dev
/home/user/project/venv/lib/python3.9/site-packages/yoctopuce/cdll/libyapi-amd64.so
On other platforms, the names and paths will be different.After that all worked as expected!
Could you validate that the following binaries are working on your computer: https://www.yoctopuce.com/FR/downloads/YoctoLib.pythonV2.61305.zip
I can confirm this is working on Ubuntu 20.04 after updating libyapi-amd64.so
Ok. We have just officially release the fix.
Hi,
I installed an older version through pip3 a one of my system, and it works great, (awesome job!), however, since New API, 2.0, the DLL are not compatible with my system. I use Nvidia with an old JetPack and can't move from it, and I get an GlibC imcompatibility issue. Having a lot of things running on it, I cannot just afford to upgrade GlibC, way too much hassle.
Current GlibC is 2.27.
I guess I'll be installing Yoctopuce from source, but it would be nice to have it backwards compatible.
Best wishes Y.