clariusdev / cast

APIs for Researchers and Marketplace Apps
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
38 stars 17 forks source link

issue in ubuntu 20.04 GLIBCXX_3.4.29 #113

Open hidalgoem opened 1 year ago

hidalgoem commented 1 year ago

Hi guys,

Trying to run the pysidecaster.py example on Ubuntu 20.04 with python 3.8, but couldn't. I put all the files in one folder and then run the command LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. python3 pysidecaster.py from the terminal. I used the last update posted last week(v10.2.2). Including the pycast.so and pyclariuscast.so available for Ubuntu 20 and python 3.8. This is what I got:

auro@MauroLinux:~/CLARIUS PROBE CODE/cast-10.2.2/desktop/src/python$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. python3 pysidecaster.py Traceback (most recent call last): File "pysidecaster.py", line 6, in import pyclariuscast ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/mauro/CLARIUS PROBE CODE/cast-10.2.2/desktop/src/python/pyclariuscast.so)

Any clue what is happening and what can I do to fix it? Thanks

clariusk commented 1 year ago

might be some useful info here: https://github.com/clariusdev/cast/issues/103, otherwise a few of the other closed issues also discuss this. thanks

hidalgoem commented 1 year ago

Hi, I tried by using the ctypes impport as suggested but is not working. same issue:

Traceback (most recent call last): File "/home/mauro/PycharmProjects/CLAROIUS_CAST2/pysidecaster.py", line 8, in pyclariuscast = ctypes.cdll.LoadLibrary('./pyclariuscast.so') # load the pyclariuscast.so shared library File "/usr/lib/python3.9/ctypes/init.py", line 452, in LoadLibrary return self._dlltype(name) File "/usr/lib/python3.9/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by ./pyclariuscast.so)

In windows is working fine, but I need this working in Ubuntu. Any idea what is happening?

clariusk commented 1 year ago

a few threads i was able to dig up with same issue: