Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing zstd host dependency? #50

Closed
1 task done
wshanks opened this issue Jan 3, 2024 · 2 comments · Fixed by conda-forge/symengine-feedstock#44
Closed
1 task done

Missing zstd host dependency? #50

wshanks opened this issue Jan 3, 2024 · 2 comments · Fixed by conda-forge/symengine-feedstock#44
Labels

Comments

@wshanks
Copy link

wshanks commented Jan 3, 2024

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:

        linux-vdso.so.1 (0x00007ffc8352c000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f045553c000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f045535e000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f045912c000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0459125000)
        libzstd.so.1 => /lib64/libzstd.so.1 (0x00007f04552a2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0459179000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f0458d49000)

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

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

active environment : tmp2
    active env location : /.conda/envs/tmp2
            shell level : 3
       user config file : /.condarc
 populated config files : /.conda/.condarc
                          /.condarc
          conda version : 23.7.4
    conda-build version : not installed
         python version : 3.11.6.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.37=0
                          __linux=6.6.2=0
                          __unix=0=0
       base environment : /.conda  (writable)
      conda av data dir : /.conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /.conda/pkgs
       envs directories : /.conda/envs
               platform : linux-64
             user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.6 Linux/6.6.2-201.fc39.x86_64 fedora/38 glibc/2.37
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
@h-vetinari
Copy link
Member

@conda-forge-admin, please rerender

@conda-forge-webservices
Copy link

Hi! This is the friendly automated conda-forge-webservice.

I just wanted to let you know that I started rerendering the recipe in #51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants