conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
5.76k stars 306 forks source link

Truststore dependency with Python 3.9 #545

Open matteoriccioare opened 5 months ago

matteoriccioare commented 5 months ago

Solution to issue cannot be found in the documentation.

Issue

Hi, I have been able to install all my packages with mamba on Python 3.9 without any error until yesterday. I'm getting an error for truststore not being installable because Python version is <3.10. I'm aware the package is not supported but I don't really need to install it and can't understand why it used to work until yesterday (I build several times a week through Docker so always a clean environment).

A simple "mamba install -y python=3.9" would raise the error.

I've been trying to set ssl_verify to False in conda config prior to the various installations but this hasn't been doing the trick.

Is there anyway to avoid having the truststore dependency/not installing it? As I said again, I'm not using the package at all and I can't really upgrade to Python 3.10 right now.

Many thanks

Installed packages

none

Environment info

active environment : base
   active env location : /home/matteo.riccio/conda_folder
           shell level : 1
      user config file : /home/matteo.riccio/.condarc
populated config files : /home/matteo.riccio/conda_folder/.condarc
                         /home/matteo.riccio/.condarc
         conda version : 23.11.0
   conda-build version : not installed
        python version : 3.10.13.final.0
                solver : libmamba (default)
      virtual packages : __archspec=1=skylake
                         __conda=23.11.0=0
                         __cuda=12.0=0
                         __glibc=2.36=0
                         __linux=6.1.0=0
                         __unix=0=0
      base environment : /home/matteo.riccio/conda_folder  (writable)
     conda av data dir : /home/matteo.riccio/conda_folder/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/matteo.riccio/conda_folder/pkgs
                         /home/matteo.riccio/.conda/pkgs
      envs directories : /home/matteo.riccio/conda_folder/envs
                         /home/matteo.riccio/.conda/envs
              platform : linux-64
            user-agent : conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/6.1.0-7-amd64 debian/12.0 glibc/2.36 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5
               UID:GID : 1025:1025
            netrc file : None
          offline mode : False
xhochy commented 5 months ago

Can you please post the actual error you get?

matteoriccioare commented 5 months ago

Can you please post the actual error you get?

This is the error:

7 20.84 Looking for: ['python=3.9', "conda-build"]

7 20.84

7 20.84 Could not solve for environment specs

7 20.84 The following packages are incompatible

7 20.84 ├─ python 3.9** is requested and can be installed;

7 20.84 └─ truststore is not installable because it requires

7 20.84 └─ python >=3.10 but there are no viable options

7 20.84 ├─ python [3.10.0|3.10.1|...|3.12.1] conflicts with any installable versions previously reported;

7 20.84 └─ python 3.12.0rc3 would require

7 20.84 └─ _python_rc, which does not exist (perhaps a missing channel).

xhochy commented 5 months ago

Can you also list a conda list of the environment you run this command in?

matteoriccioare commented 5 months ago

Can you also list a conda list of the environment you run this command in?

I'm using the latest Mambaforge release.

_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
archspec                  0.2.2              pyhd8ed1ab_0    conda-forge
boltons                   23.1.1             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310hc6cd4ac_1    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.24.0               hd590300_0    conda-forge
ca-certificates           2023.11.17           hbcca054_0    conda-forge
certifi                   2023.11.17         pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py310h2fee648_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.11.0         py310hff52083_1    conda-forge
conda-libmamba-solver     23.12.0            pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
distro                    1.8.0              pyhd8ed1ab_0    conda-forge
fmt                       10.1.1               h00ab1b0_1    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310hff52083_3    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.2               h659d440_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libarchive                3.7.2                h2aa1ff5_1    conda-forge
libcurl                   8.5.0                hca28451_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-ng                 13.2.0               h807b86a_3    conda-forge
libgomp                   13.2.0               h807b86a_3    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libmamba                  1.5.5                had39da4_0    conda-forge
libmambapy                1.5.5           py310h39ff949_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsolv                   0.7.27               hfc55251_0    conda-forge
libsqlite                 3.44.2               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_3    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxml2                   2.12.3               h232c23b_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
mamba                     1.5.5           py310h51d5547_0    conda-forge
menuinst                  2.0.1           py310hff52083_0    conda-forge
ncurses                   6.4                  h59595ed_2    conda-forge
openssl                   3.2.0                hd590300_1    conda-forge
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pip                       23.3.2             pyhd8ed1ab_0    conda-forge
platformdirs              4.1.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2372a71_0    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.13         hd12c33a_0_cpython    conda-forge
python_abi                3.10                    4_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.31.0             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.5          py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h2372a71_2    conda-forge
setuptools                68.2.2             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tqdm                      4.66.1             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.1.0              pyhd8ed1ab_0    conda-forge
wheel                     0.42.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
zstandard                 0.22.0          py310h1275a96_0    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge
xhochy commented 5 months ago

You are trying to change the Python version of your base environment. This will be complicated. I would rather suggest that you create a new environment instead. Newer versions of conda will require newer Pythons and thus this is not an advisable approach.

matteoriccioare commented 5 months ago

You are trying to change the Python version of your base environment. This will be complicated. I would rather suggest that you create a new environment instead. Newer versions of conda will require newer Pythons and thus this is not an advisable approach.

Thanks for your tip. It does work on a new plain environment but I need to use the base environment... how come it works with Conda though?

Many thanks for your help