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

pip check failed for PY3.12 + NP1 #37

Open
1 task done
njzjz opened this issue Jan 13, 2025 · 3 comments · Fixed by #38
Open
1 task done

pip check failed for PY3.12 + NP1 #37

njzjz opened this issue Jan 13, 2025 · 3 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@njzjz
Copy link
Member

njzjz commented Jan 13, 2025

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Run

mamba create -n mendeleev-np1 mendeleev=0.20.1 python=3.12 "numpy<2" pip -y
pip check

Got

mendeleev 0.20.1 has requirement numpy<3.0,>=2.0; python_version >= "3.12", but you have numpy 1.26.4.

Installed packages

# packages in environment at /home/jz748/anaconda3/envs/mendeleev-np1:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
annotated-types           0.7.0              pyhd8ed1ab_1    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
ca-certificates           2024.12.14           hbcca054_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_1    conda-forge
deprecated                1.2.15             pyhd8ed1ab_1    conda-forge
greenlet                  3.1.1           py312h2ec8cdc_1    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_2    conda-forge
libblas                   3.9.0           26_linux64_openblas    conda-forge
libcblas                  3.9.0           26_linux64_openblas    conda-forge
libexpat                  2.6.4                h5888daf_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc                    14.2.0               h77fa898_1    conda-forge
libgcc-ng                 14.2.0               h69a702a_1    conda-forge
libgfortran               14.2.0               h69a702a_1    conda-forge
libgfortran5              14.2.0               hd5240d6_1    conda-forge
libgomp                   14.2.0               h77fa898_1    conda-forge
liblapack                 3.9.0           26_linux64_openblas    conda-forge
liblzma                   5.6.3                hb9d3cd8_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.28          pthreads_h94d23a6_1    conda-forge
libsqlite                 3.47.2               hee588c1_0    conda-forge
libstdcxx                 14.2.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.2.0               h4852527_1    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libzlib                   1.3.1                hb9d3cd8_2    conda-forge
mendeleev                 0.20.1             pyh26b27b7_1    conda-forge
ncurses                   6.5                  h2d0b736_2    conda-forge
numpy                     1.26.4          py312heda63a1_0    conda-forge
openssl                   3.4.0                h7b32b05_1    conda-forge
pandas                    2.2.3           py312hf9745cd_1    conda-forge
pip                       24.3.1             pyh8b19718_2    conda-forge
pydantic                  2.10.5             pyh3cfb1c2_0    conda-forge
pydantic-core             2.27.2          py312h12e396e_0    conda-forge
pyfiglet                  0.8.post1                  py_0    conda-forge
pygments                  2.19.1             pyhd8ed1ab_0    conda-forge
python                    3.12.8          h9e4cc4f_1_cpython    conda-forge
python-dateutil           2.9.0.post0        pyhff2d567_1    conda-forge
python-tzdata             2024.2             pyhd8ed1ab_1    conda-forge
python_abi                3.12                    5_cp312    conda-forge
pytz                      2024.1             pyhd8ed1ab_0    conda-forge
readline                  8.2                  h8228510_1    conda-forge
setuptools                75.8.0             pyhff2d567_0    conda-forge
six                       1.17.0             pyhd8ed1ab_0    conda-forge
sqlalchemy                2.0.37          py312h66e93f0_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
typing-extensions         4.12.2               hd8ed1ab_1    conda-forge
typing_extensions         4.12.2             pyha770c72_1    conda-forge
tzdata                    2024b                hc8b5060_0    conda-forge
wheel                     0.45.1             pyhd8ed1ab_1    conda-forge
wrapt                     1.17.0          py312h66e93f0_0    conda-forge

Environment info

mamba version : 1.5.6
     active environment : mendeleev-np1
    active env location : /home/jz748/anaconda3/envs/mendeleev-np1
            shell level : 2
       user config file : /home/jz748/.condarc
 populated config files : /home/jz748/anaconda3/.condarc
                          /home/jz748/.condarc
          conda version : 23.11.0
    conda-build version : 3.28.4
         python version : 3.10.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=23.11.0=0
                          __cuda=12.4=0
                          __glibc=2.37=0
                          __linux=6.8.9=0
                          __unix=0=0
       base environment : /home/jz748/anaconda3  (writable)
      conda av data dir : /home/jz748/anaconda3/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 : /home/jz748/anaconda3/pkgs
                          /home/jz748/.conda/pkgs
       envs directories : /home/jz748/anaconda3/envs
                          /home/jz748/.conda/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.32.3 CPython/3.10.13 Linux/6.8.9-100.fc38.x86_64 fedora/38 glibc/2.37 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
                UID:GID : 1001:1002
             netrc file : None
           offline mode : False
@njzjz njzjz added the bug Something isn't working label Jan 13, 2025
@jan-janssen jan-janssen linked a pull request Jan 24, 2025 that will close this issue
5 tasks
@njzjz
Copy link
Member Author

njzjz commented Feb 10, 2025

In conda-forge/deepmd-kit-feedstock#90, this error still exists:

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1172566&view=logs&jobId=d49dbcef-bf20-5a8a-a3c0-6b6309067d07&j=5eaeabf9-98bb-5ad4-ae9b-9c34ad8b134f&t=f9feff57-a1a8-511d-d6e0-bac292e08e21

+ pip check
mendeleev 0.20.1 has requirement numpy<3.0,>=2.0; python_version >= "3.12", but you have numpy 1.26.4.
    mendeleev:                0.20.1-pyh26b27b7_1                       conda-forge

@h-vetinari
Copy link
Member

h-vetinari commented Feb 12, 2025

The condition

- numpy <3.0,>=2.0

is very likely incorrect. A build compiled against numpy 2.0 is compatible with numpy >=1.19,<3. This is handled by the run-export of numpy, so no need to do this manually. That is, unless mendeleev requires runtime features from numpy 2.0, in which case you can simply add numpy >=2.0 in the run-requirements.

In either case, don't manually recreate numpy's run-exports.

@h-vetinari h-vetinari reopened this Feb 12, 2025
@h-vetinari
Copy link
Member

Gentle ping @conda-forge/mendeleev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants