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

Fresh Python 3.6 env installs old versions of setuptools and certifi #515

Closed
1 task done
jayqi opened this issue Oct 11, 2021 · 3 comments
Closed
1 task done

Fresh Python 3.6 env installs old versions of setuptools and certifi #515

jayqi opened this issue Oct 11, 2021 · 3 comments

Comments

@jayqi
Copy link

jayqi commented Oct 11, 2021

Issue:

In the past few days, I've observing that installing Python 3.6 in a fresh environment is installing old versions of setuptools and certifi. This has led to some CI builds breaking because pip errors when trying to upgrade this old certifi because it's a distutils package.


❯ conda create -n test36 python=3.6 -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/jqi/miniconda3/envs/test36

  added / updated specs:
    - python=3.6


The following NEW packages will be INSTALLED:

  ca-certificates    conda-forge/osx-64::ca-certificates-2021.10.8-h033912b_0
  certifi            conda-forge/osx-64::certifi-2016.9.26-py36_0
  libcxx             conda-forge/osx-64::libcxx-12.0.1-habf9029_0
  libffi             conda-forge/osx-64::libffi-3.4.2-he49afe7_4
  libzlib            conda-forge/osx-64::libzlib-1.2.11-h9173be1_1013
  ncurses            conda-forge/osx-64::ncurses-6.2-h2e338ed_4
  openssl            conda-forge/osx-64::openssl-1.1.1l-h0d85af4_0
  pip                conda-forge/noarch::pip-21.2.4-pyhd8ed1ab_0
  python             conda-forge/osx-64::python-3.6.13-haf480d7_2_cpython
  python_abi         conda-forge/osx-64::python_abi-3.6-2_cp36m
  readline           conda-forge/osx-64::readline-8.1-h05e3726_0
  setuptools         conda-forge/osx-64::setuptools-49.6.0-py36h79c6626_3
  sqlite             conda-forge/osx-64::sqlite-3.36.0-h23a322b_2
  tk                 conda-forge/osx-64::tk-8.6.11-h5dbffcc_1
  wheel              conda-forge/noarch::wheel-0.37.0-pyhd8ed1ab_1
  xz                 conda-forge/osx-64::xz-5.2.5-haf1e3a3_1
  zlib               conda-forge/osx-64::zlib-1.2.11-h9173be1_1013

I don't get this problem using conda with defaults channel, or using mamba with conda-forge channel. This seems to be something that happens when using conda with conda-forge.

conda with defaults:

❯ conda create -n test36-defaults python=3.6 -c defaults
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/jqi/miniconda3/envs/test36-defaults

  added / updated specs:
    - python=3.6


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2021.9.30  |       hecd8cb5_1         116 KB
    certifi-2021.5.30          |   py36hecd8cb5_0         138 KB
    libcxx-12.0.0              |       h2f01273_0         805 KB
    openssl-1.1.1l             |       h9ed2024_0         2.2 MB
    pip-21.0.1                 |   py36hecd8cb5_0         1.8 MB
    python-3.6.13              |       h88f2d9e_0        16.8 MB
    setuptools-58.0.4          |   py36hecd8cb5_0         777 KB
    tk-8.6.11                  |       h7bc2e8c_0         3.0 MB
    wheel-0.37.0               |     pyhd3eb1b0_1          33 KB
    ------------------------------------------------------------
                                           Total:        25.7 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2021.9.30-hecd8cb5_1
  certifi            pkgs/main/osx-64::certifi-2021.5.30-py36hecd8cb5_0
  libcxx             pkgs/main/osx-64::libcxx-12.0.0-h2f01273_0
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1l-h9ed2024_0
  pip                pkgs/main/osx-64::pip-21.0.1-py36hecd8cb5_0
  python             pkgs/main/osx-64::python-3.6.13-h88f2d9e_0
  readline           pkgs/main/osx-64::readline-8.1-h9ed2024_0
  setuptools         pkgs/main/osx-64::setuptools-58.0.4-py36hecd8cb5_0
  sqlite             pkgs/main/osx-64::sqlite-3.36.0-hce871da_0
  tk                 pkgs/main/osx-64::tk-8.6.11-h7bc2e8c_0
  wheel              pkgs/main/noarch::wheel-0.37.0-pyhd3eb1b0_1
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3
mamba with conda-forge:

❯ mamba create -n test36-mamba python=3.6 -c conda-forge

Looking for: ['python=3.6']

pkgs/r/osx-64            [====================] (00m:00s) No change
pkgs/r/noarch            [====================] (00m:00s) No change
pkgs/main/noarch         [====================] (00m:01s) Done
pkgs/main/osx-64         [====================] (00m:08s) Done
conda-forge/noarch       [====================] (00m:11s) Done
conda-forge/osx-64       [====================] (00m:16s) Done
Transaction

  Prefix: /Users/jqi/miniconda3/envs/test36-mamba

  Updating specs:

   - python=3.6


  Package              Version  Build               Channel                  Size
───────────────────────────────────────────────────────────────────────────────────
  Install:
───────────────────────────────────────────────────────────────────────────────────

  + ca-certificates  2021.10.8  h033912b_0          conda-forge/osx-64     Cached
  + libcxx              12.0.1  habf9029_0          conda-forge/osx-64     Cached
  + libffi               3.4.2  he49afe7_4          conda-forge/osx-64     Cached
  + libzlib             1.2.11  h9173be1_1013       conda-forge/osx-64     Cached
  + ncurses                6.2  h2e338ed_4          conda-forge/osx-64     Cached
  + openssl             1.1.1l  h0d85af4_0          conda-forge/osx-64     Cached
  + pip                 21.2.4  pyhd8ed1ab_0        conda-forge/noarch     Cached
  + python              3.6.13  haf480d7_2_cpython  conda-forge/osx-64     Cached
  + python_abi             3.6  2_cp36m             conda-forge/osx-64     Cached
  + readline               8.1  h05e3726_0          conda-forge/osx-64     Cached
  + setuptools          58.0.4  py36h79c6626_2      conda-forge/osx-64     Cached
  + sqlite              3.36.0  h23a322b_2          conda-forge/osx-64     Cached
  + tk                  8.6.11  h5dbffcc_1          conda-forge/osx-64     Cached
  + wheel               0.37.0  pyhd8ed1ab_1        conda-forge/noarch     Cached
  + xz                   5.2.5  haf1e3a3_1          conda-forge/osx-64     Cached
  + zlib                1.2.11  h9173be1_1013       conda-forge/osx-64     Cached

I've observed this on multiple platforms:

  • Local machine with macOS
❯ conda info

     active environment : None
            shell level : 0
       user config file : /Users/jqi/.condarc
 populated config files : /Users/jqi/.condarc
          conda version : 4.10.3
    conda-build version : not installed
         python version : 3.9.7.final.0
       virtual packages : __osx=11.6=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /Users/jqi/miniconda3  (writable)
      conda av data dir : /Users/jqi/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/jqi/miniconda3/pkgs
                          /Users/jqi/.conda/pkgs
       envs directories : /Users/jqi/miniconda3/envs
                          /Users/jqi/.conda/envs
               platform : osx-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Darwin/20.6.0 OSX/11.6
                UID:GID : 501:20
             netrc file : None
           offline mode : False
  • GitHub actions on ubuntu-latest with conda-incubator/setup-miniconda action: log
  • GitHub actions on macos-latest with conda-incubator/setup-miniconda action: log
@jakirkham
Copy link
Member

We have dropped Python 3.6 support in conda-forge to make room for Python 3.10. Please upgrade to a newer Python version as soon as you are able

@jayqi
Copy link
Author

jayqi commented Oct 11, 2021

I have some concerns about the dropped Python 3.6 support by conda-forge. Foremost of which is that Python 3.6 doesn't reach end-of-life for two more months. Where is the best place for me to voice those?

@xhochy
Copy link
Member

xhochy commented Oct 11, 2021

This has been discussed at conda-forge/conda-forge-pinning-feedstock#1947 and approved on conda-forge/conda-forge-pinning-feedstock#1955; feel free to voice them at conda-forge/conda-forge-pinning-feedstock#1947 but given the resource needs of supporting an additional Python version, reversing this decision won't likely happen.

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

No branches or pull requests

3 participants