conda-forge / gymnasium-feedstock

A conda-smithy repository for gymnasium.
BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

Does not support numpy 2 #42

Open sfo opened 1 week ago

sfo commented 1 week ago

Solution to issue cannot be found in the documentation.

Issue

Since 1.0.0, gymnasium supports Python 3.12 and Numpy 2.0. Specifically, the dependency says "numpy >=1.21.0",.

However, the following command fails to resolve dependencies:

$ mamba create -n gym -c conda-forge "python>=3.12" "numpy>=2.0" "gymnasium>=1.0"

Looking for: ["python[version='>=3.12']", "numpy[version='>=2.0']", "gymnasium[version='>=1.0']"]

conda-forge/linux-64                                        Using cache         
conda-forge/noarch                                          Using cache         
pkgs/main/noarch                                              No change         
pkgs/r/linux-64                                               No change         
pkgs/main/linux-64                                            No change         
pkgs/r/noarch                                                 No change         
Could not solve for environment specs                                           
The following packages are incompatible                                         
├─ gymnasium >=1.0  is installable with the potential options                   
│  ├─ gymnasium 1.0.0 would require                                             
│  │  ├─ python >=3.10,<3.11.0a0 , which can be installed;                      
│  │  └─ python_abi 3.10.* *_cp310, which can be installed;                     
│  ├─ gymnasium 1.0.0 would require                                             
│  │  ├─ python >=3.11,<3.12.0a0 , which can be installed;                      
│  │  └─ python_abi 3.11.* *_cp311, which can be installed;                     
│  ├─ gymnasium 1.0.0 would require                                             
│  │  ├─ numpy >=1.26.4,<2.0a0  with the potential options                      
│  │  │  ├─ numpy [1.26.4|2.0.0|...|2.1.3] would require                        
│  │  │  │  └─ python_abi 3.10.* *_cp310, which can be installed;               
│  │  │  ├─ numpy [1.26.4|2.0.0|...|2.1.3] would require                        
│  │  │  │  └─ python_abi 3.11.* *_cp311, which can be installed;               
│  │  │  ├─ numpy 1.26.4, which can be installed;                               
│  │  │  ├─ numpy [1.26.4|2.0.0|2.0.1|2.0.2] would require                      
│  │  │  │  └─ python_abi 3.9.* *_cp39, which can be installed;                 
│  │  │  ├─ numpy 1.26.4 would require                                          
│  │  │  │  └─ pypy3.9 >=7.3.15 , which can be installed;                       
│  │  │  ├─ numpy [1.26.4|2.0.0|2.0.1|2.1.1|2.1.3] would require                
│  │  │  │  └─ python >=3.10,<3.11.0a0 , which can be installed;                
│  │  │  ├─ numpy [1.26.4|2.0.0|2.0.1|2.1.1|2.1.3] would require
│  │  │  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
│  │  │  └─ numpy [1.26.4|2.0.0|2.0.1] would require
│  │  │     └─ python >=3.9,<3.10.0a0 , which can be installed;
│  │  ├─ python >=3.12,<3.13.0a0  but there are no viable options
│  │  │  ├─ python [3.12.0|3.12.1|...|3.12.7] conflicts with any installable versions previously reported;
│  │  │  └─ python [3.12.0|3.12.1|...|3.12.7] would require
│  │  │     └─ python_abi 3.12.* *_cp312, which conflicts with any installable versions previously reported;
│  │  └─ python_abi 3.12.* *_cp312, which requires
│  │     └─ python 3.12.* *_cpython, which can be installed;
│  └─ gymnasium 1.0.0 would require
│     ├─ python >=3.9,<3.10.0a0 , which can be installed;
│     └─ python_abi 3.9.* *_cp39, which can be installed;               
├─ numpy >=2.0  is installable with the potential options               
│  ├─ numpy [1.26.4|2.0.0|...|2.1.3], which can be installed (as previously explained);
│  ├─ numpy [1.26.4|2.0.0|...|2.1.3], which can be installed (as previously explained);
│  ├─ numpy [1.26.4|2.0.0|2.0.1|2.0.2], which can be installed (as previously explained);
│  ├─ numpy [1.26.4|2.0.0|2.0.1|2.1.1|2.1.3], which can be installed (as previously explained);
│  ├─ numpy [1.26.4|2.0.0|2.0.1|2.1.1|2.1.3], which can be installed (as previously explained);
│  ├─ numpy [1.26.4|2.0.0|2.0.1], which can be installed (as previously explained);
│  ├─ numpy [2.0.0|2.0.1|...|2.1.3] conflicts with any installable versions previously reported;
│  ├─ numpy [2.1.0|2.1.1|2.1.2|2.1.3] would require
│  │  └─ python_abi 3.13.* *_cp313, which can be installed;
│  ├─ numpy 2.1.0rc1 would require
│  │  └─ _numpy_rc, which does not exist (perhaps a missing channel);
│  └─ numpy [2.1.2|2.1.3] would require
│     └─ python_abi 3.13.* *_cp313t, which can be installed;
└─ python >=3.12  is not installable because there are no viable options
   ├─ python [3.12.0|3.12.1|...|3.12.7] conflicts with any installable versions previously reported;
   ├─ python [3.12.0|3.12.1|...|3.12.7], which cannot be installed (as previously explained);
   ├─ python 3.13.0 conflicts with any installable versions previously reported;
   └─ python [3.13.0rc1|3.13.0rc2|3.13.0rc3] would require
      └─ _python_rc, which does not exist (perhaps a missing channel).

Installed packages

# packages in environment at /home/stanley/.miniforge3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310hf71b8c6_2    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.34.3               heb4867d_0    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py310h8deb56e_0    conda-forge
charset-normalizer        3.4.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.9.2          py310hff52083_0    conda-forge
conda-libmamba-solver     24.9.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.4.0              pyh7900ff3_0    conda-forge
conda-package-streaming   0.11.0             pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
fmt                       11.0.2               h434a139_0    conda-forge
frozendict                2.4.6           py310ha75aee5_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       75.1                 he02047a_0    conda-forge
idna                      3.10               pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               3.0.0           py310hff52083_1    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_2    conda-forge
libarchive                3.7.4                hfca40fe_0    conda-forge
libcurl                   8.10.1               hbbe4b11_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    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
libgomp                   14.2.0               h77fa898_1    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libmamba                  1.5.10               hf72d635_1    conda-forge
libmambapy                1.5.10          py310h6639945_1    conda-forge
libnghttp2                1.64.0               h161d5f1_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsolv                   0.7.30               h3509ff9_0    conda-forge
libsqlite                 3.47.0               hadc24fc_1    conda-forge
libssh2                   1.11.0               h0841786_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
libxml2                   2.13.4               hb346dea_2    conda-forge
libzlib                   1.3.1                hb9d3cd8_2    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              hd590300_1001    conda-forge
mamba                     1.5.10          py310h51d5547_1    conda-forge
menuinst                  2.2.0           py310hff52083_0    conda-forge
ncurses                   6.5                  he02047a_1    conda-forge
openssl                   3.4.0                hb9d3cd8_0    conda-forge
packaging                 24.2               pyhd8ed1ab_0    conda-forge
pip                       24.3.1             pyh8b19718_0    conda-forge
platformdirs              4.3.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2372a71_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.15         h4a871b0_2_cpython    conda-forge
python_abi                3.10                    5_cp310    conda-forge
readline                  8.2                  h8228510_1    conda-forge
reproc                    14.2.4.post0         hd590300_1    conda-forge
reproc-cpp                14.2.4.post0         h59595ed_1    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py310ha75aee5_1    conda-forge
ruamel.yaml.clib          0.2.8           py310ha75aee5_1    conda-forge
setuptools                75.3.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tqdm                      4.67.0             pyhd8ed1ab_0    conda-forge
truststore                0.10.0             pyhd8ed1ab_0    conda-forge
tzdata                    2024b                hc8b5060_0    conda-forge
urllib3                   2.2.3              pyhd8ed1ab_0    conda-forge
wheel                     0.45.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
zstandard                 0.23.0          py310ha39cb0e_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

Environment info

active environment : None
            shell level : 0
       user config file : /home/stanley/.condarc
 populated config files : /home/stanley/.miniforge3/.condarc
                          /home/stanley/.condarc
          conda version : 24.9.2
    conda-build version : not installed
         python version : 3.10.15.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.9.2=0
                          __cuda=12.6=0
                          __glibc=2.39=0
                          __linux=6.8.0=0
                          __unix=0=0
       base environment : /home/stanley/.miniforge3  (writable)
      conda av data dir : /home/stanley/.miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/stanley/.miniforge3/pkgs
                          /home/stanley/.conda/pkgs
       envs directories : /home/stanley/.miniforge3/envs
                          /home/stanley/.conda/envs
               platform : linux-64
             user-agent : conda/24.9.2 requests/2.32.3 CPython/3.10.15 Linux/6.8.0-48-generic ubuntu/24.04.1 glibc/2.39 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.10
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
h-vetinari commented 10 hours ago

You can check the numpy 2 migrator status page to see that this is waiting for https://github.com/conda-forge/tensorstore-feedstock/pull/30