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
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
symengine/lib/symengine_wrapper.*.so seems to link against libzstd.so without being specified as a host dependency. When I run ldd symengine/lib/symengine_wrapper.cpython-312-x86_64-linux-gnu.so on Fedora I see:
I think everything besides libzstd is normal (I deleted all the entries for libraries found in my conda environment). Since I have libzstd installed on my host, I can still import symengine in Python without issue. However, when I was trying to test another package that depends on python-symengine, the import failed in CI here. I wonder why the linker checker didn't flag this.
Here is the CI log in case it gets purged:
2024-01-03T20:08:36.5838509Z import: 'qiskit'
2024-01-03T20:08:36.7033569Z Traceback (most recent call last):
2024-01-03T20:08:36.7034438Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/test_tmp/run_test.py", line 2, in <module>
2024-01-03T20:08:36.7038871Z import qiskit
2024-01-03T20:08:36.7041012Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/__init__.py", line 61, in <module>
2024-01-03T20:08:36.7050216Z from qiskit.circuit import ClassicalRegister
2024-01-03T20:08:36.7051708Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/circuit/__init__.py", line 365, in <module>
2024-01-03T20:08:36.7062202Z from .quantumcircuit import QuantumCircuit
2024-01-03T20:08:36.7067858Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/circuit/quantumcircuit.py", line 43, in <module>
2024-01-03T20:08:36.7069671Z from qiskit.utils.multiprocessing import is_main_process
2024-01-03T20:08:36.7070458Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/utils/__init__.py", line 48, in <module>
2024-01-03T20:08:36.7150065Z from .units import apply_prefix, detach_prefix
2024-01-03T20:08:36.7151667Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/utils/units.py", line 18, in <module>
2024-01-03T20:08:36.7152253Z from qiskit.circuit.parameterexpression import ParameterExpression
2024-01-03T20:08:36.7153060Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/qiskit/circuit/parameterexpression.py", line 23, in <module>
2024-01-03T20:08:36.7153543Z import symengine
2024-01-03T20:08:36.7154298Z File "/home/conda/feedstock_root/build_artifacts/qiskit_1704312171365/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.10/site-packages/symengine/__init__.py", line 12, in <module>
2024-01-03T20:08:36.7154789Z import symengine.lib.symengine_wrapper as wrapper
2024-01-03T20:08:36.7155074Z ImportError: libzstd.so.1: cannot open shared object file: No such file or directory
Solution to issue cannot be found in the documentation.
Issue
symengine/lib/symengine_wrapper.*.so
seems to link againstlibzstd.so
without being specified as a host dependency. When I runldd symengine/lib/symengine_wrapper.cpython-312-x86_64-linux-gnu.so
on Fedora I see:I think everything besides libzstd is normal (I deleted all the entries for libraries found in my conda environment). Since I have libzstd installed on my host, I can still import symengine in Python without issue. However, when I was trying to test another package that depends on python-symengine, the import failed in CI here. I wonder why the linker checker didn't flag this.
Here is the CI log in case it gets purged:
Installed packages
# Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge bzip2 1.0.8 hd590300_5 conda-forge ca-certificates 2023.11.17 hbcca054_0 conda-forge gf2x 1.3.0 ha476b99_2 conda-forge gmp 6.3.0 h59595ed_0 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge libexpat 2.5.0 hcb278e6_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libflint 2.9.0 h2f819a4_ntl_100 conda-forge libgcc-ng 13.2.0 h807b86a_3 conda-forge libgomp 13.2.0 h807b86a_3 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libsqlite 3.44.2 h2797004_0 conda-forge libstdcxx-ng 13.2.0 h7e041cc_3 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libxcrypt 4.4.36 hd590300_1 conda-forge libzlib 1.2.13 hd590300_5 conda-forge mpc 1.3.1 hfe3b2da_0 conda-forge mpfr 4.2.1 h9458935_0 conda-forge ncurses 6.4 h59595ed_2 conda-forge ntl 11.4.3 hef3c4d3_1 conda-forge openssl 3.2.0 hd590300_1 conda-forge pip 23.3.2 pyhd8ed1ab_0 conda-forge python 3.12.1 hab00c5b_1_cpython conda-forge python-symengine 0.11.0 py312h83f29e1_1 conda-forge python_abi 3.12 4_cp312 conda-forge readline 8.2 h8228510_1 conda-forge setuptools 69.0.3 pyhd8ed1ab_0 conda-forge symengine 0.11.2 hb29318e_0 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge tzdata 2023d h0c530f3_0 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h166bdaf_0 conda-forge
Environment info
The text was updated successfully, but these errors were encountered: