You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project has been successfully built and installed through pip install .. But When I tried to import my package, an ImportError was raised. It seems that the .so shared lib I compiled is trying to call the libstdc++.so.6 in the Conda environment:
ImportError: xxx/envs/fdcn/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by xxx/envs/fdcn/lib/python3.13/site-packages/ferrodispcalc/_core.cpython-313-x86_64-linux-gnu.so)
But ldd told me that the .so shared lib I compiled is linked to the libstdc++.so.6 in system:
I have tried to compile the c++ code using g++ provided by the conda environment, and everything works well. It seems that this issue can also be fixed by export LD_LIBRARY_PATH or copy or delete origin libstdc++.so.6. But I want users can directly install the package through pip3 install . Are there any convenient ways to fix this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear community,
My project has been successfully built and installed through
pip install .
. But When I tried to import my package, anImportError
was raised. It seems that the.so
shared lib I compiled is trying to call thelibstdc++.so.6
in the Conda environment:ImportError: xxx/envs/fdcn/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by xxx/envs/fdcn/lib/python3.13/site-packages/ferrodispcalc/_core.cpython-313-x86_64-linux-gnu.so)
But
ldd
told me that the.so
shared lib I compiled is linked to thelibstdc++.so.6
in system:And the
libstdc++.so.6
in my system provides a higher enough GLIBCXX version:I have tried to compile the
c++
code usingg++
provided by the conda environment, and everything works well. It seems that this issue can also be fixed byexport LD_LIBRARY_PATH
orcopy or delete origin libstdc++.so.6
. But I want users can directly install the package throughpip3 install .
Are there any convenient ways to fix this issue?Beta Was this translation helpful? Give feedback.
All reactions