CSF icon indicating copy to clipboard operation
CSF copied to clipboard

Python import error

Open pl52feve opened this issue 2 years ago • 1 comments

Hi, I tried to install CSF on WSL. It seemed that the install worked, however when importing the library in my code, this error occurs:

Traceback (most recent call last): File "", line 1, in File "/home/my_name/conda/lib/python3.9/site-packages/CSF-1.1.1-py3.9-linux-x86_64.egg/CSF.py", line 17, in _CSF = swig_import_helper() File "/home/my_name/conda/lib/python3.9/site-packages/CSF-1.1.1-py3.9-linux-x86_64.egg/CSF.py", line 16, in swig_import_helper return importlib.import_module('_CSF') File "/home/my_name/conda/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: /home/my_name/conda/lib/python3.9/site-packages/CSF-1.1.1-py3.9-linux-x86_64.egg/_CSF.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZSt28__throw_bad_array_new_lengthv

Do you have an idea what could be wrong? Thanks so much in advance.

pl52feve avatar Oct 10 '22 14:10 pl52feve

It may be related to the versionof the gcc compiler you have used, maybe because of missmatch in c-compiler and cxx-compiler version of anaconda and system. I never tested the WSL.

jianboqi avatar Oct 10 '22 14:10 jianboqi