Skip to content

mamba brings pypy instead of CPython when creating env #658

@gabrielcnr

Description

@gabrielcnr

I have here what it seems to be related to the issue #81

When using mamba to create an environment, it keeps pulling pypy, which is not part of the given specs. When using pure conda that does not happen.

I tested this on Mac and Linux, and both presented the same behaviour.

Creating an env with:

mamba create -n foobar "cachetools" "dataclasses" "diskcache>=4,<5" "humanize" "matplotlib>=3.1.3,<3.2" "numpy>=1.12.1" "pandas<1" "pydantic " "pytest" "pytest-mock" "pytest-datadir" "python>=3.6.10,<3.7" "python-dateutil" "pytz" "requests-mock>=1.7,<1.8" "ujson" "lxml>=3.8.0" "beautifulsoup4>=4.8 .0,<4.9"

Gives:

Looking for: ['cachetools', 'dataclasses', "diskcache[version='>=4,<5']", 'humanize', "matplotlib[version='>=3.1.3,<3.2']", "numpy[version='>=1.12.1']", "pandas[version='<1']", 'pydantic', 'pytest', 'pytest-mock', 'pytest-datadir', "python[version='>=3.6.10,<3.7']", 'python-dateutil', 'pytz', "requests-mock[version='>=1.7,<1.8']", 'ujson', "lxml[version='>=3.8.0']", "beautifulsoup4[version='>=4.8.0,<4.9']"]

conda-forge/osx-64       Using cache
conda-forge/noarch       Using cache
main/noarch              [====================] (00m:00s) No change
main/osx-64              [====================] (00m:00s) No change
Transaction

  Prefix: /Users/greis/conda/envs/boa-dev/envs/foobar

  Updating specs:

   - cachetools
   - dataclasses
   - diskcache[version='>=4,<5']
   - humanize
   - matplotlib[version='>=3.1.3,<3.2']
   - numpy[version='>=1.12.1']
   - pandas[version='<1']
   - pydantic
   - pytest
   - pytest-mock
   - pytest-datadir
   - python[version='>=3.6.10,<3.7']
   - python-dateutil
   - pytz
   - requests-mock[version='>=1.7,<1.8']
   - ujson
   - lxml[version='>=3.8.0']
   - beautifulsoup4[version='>=4.8.0,<4.9']


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

  attrs                  20.3.0  pyhd3eb1b0_0       main/noarch             42 KB
  beautifulsoup4          4.8.2  py36_0             main/osx-64            161 KB
  brotlipy                0.7.0  py36h9ed2024_1003  main/osx-64            359 KB
  bzip2                   1.0.8  h1de35cc_0         main/osx-64            104 KB
  ca-certificates     2020.12.8  hecd8cb5_0         main/osx-64            Cached
  cachetools              4.2.0  pyhd3eb1b0_0       main/noarch             13 KB
  certifi             2020.12.5  py36hecd8cb5_0     main/osx-64            143 KB
  cffi                   1.14.4  py36h2125817_0     main/osx-64            217 KB
  chardet                 4.0.0  py36hecd8cb5_1003  main/osx-64            219 KB
  cryptography            3.3.1  py36hbcfaee0_0     main/osx-64            615 KB
  cycler                 0.10.0  py36hfc81398_0     main/osx-64             13 KB
  dataclasses               0.7  py36_0             main/osx-64             30 KB
  diskcache               4.1.0  pyh9f0ad1d_0       conda-forge/noarch      37 KB
  expat                  2.2.10  hb1e8313_2         main/osx-64            Cached
  freetype               2.10.4  ha233b18_0         main/osx-64            891 KB
  gdbm                     1.18  h8a0c380_2         conda-forge/osx-64     131 KB
  humanize                3.2.0  pyhd3eb1b0_0       main/noarch             39 KB
  icu                      58.2  h0a44026_3         main/osx-64             23 MB
  idna                     2.10  py_0               main/noarch            Cached
  importlib-metadata      3.4.0  py36h5dafb3c_0     conda-forge/osx-64      20 KB
  importlib_metadata      3.4.0  hd8ed1ab_0         conda-forge/noarch       3 KB
  iniconfig               1.1.1  py_0               main/noarch              8 KB
  kiwisolver              1.3.1  py36hb084ce4_1     conda-forge/osx-64      57 KB
  libblas                 3.9.0  7_openblas         conda-forge/osx-64      11 KB
  libcblas                3.9.0  7_openblas         conda-forge/osx-64      11 KB
  libcxx                 11.0.0  h4c3b8ed_1         conda-forge/osx-64     Cached
  libffi                    3.3  hb1e8313_2         main/osx-64            Cached
  libgfortran             5.0.0  9_3_0_h6c81a4c_16  conda-forge/osx-64      19 KB
  libgfortran5            9.3.0  h6c81a4c_16        conda-forge/osx-64       2 MB
  libiconv                 1.16  h1de35cc_0         main/osx-64            Cached
  liblapack               3.9.0  7_openblas         conda-forge/osx-64      11 KB
  libopenblas            0.3.12  openmp_h54245bb_1  conda-forge/osx-64       9 MB
  libpng                 1.6.37  ha441bb4_0         main/osx-64            325 KB
  libxml2                2.9.10  h7cdb67c_3         main/osx-64              1 MB
  libxslt                1.1.34  h83b36ba_0         main/osx-64            534 KB
  llvm-openmp            11.0.0  h73239a0_1         conda-forge/osx-64     268 KB
  lxml                    4.6.2  py36h26b266a_0     main/osx-64              1 MB
  matplotlib              3.1.3  py36_0             main/osx-64             20 KB
  matplotlib-base         3.1.3  py36h9aa3819_0     main/osx-64              7 MB
  more-itertools          8.6.0  pyhd3eb1b0_0       main/noarch             38 KB
  ncurses                   6.2  h0a44026_1         main/osx-64            Cached
  numpy                  1.19.5  py36h9faff70_1     conda-forge/osx-64       5 MB
  openssl                1.1.1i  h9ed2024_0         main/osx-64            Cached
  packaging                20.8  pyhd3eb1b0_0       main/noarch            Cached
  pandas                 0.25.3  py36h0a44026_0     main/osx-64             10 MB
  pip                    20.3.3  py36hecd8cb5_0     main/osx-64              2 MB
  pluggy                 0.13.1  py36_0             main/osx-64             32 KB
  py                     1.10.0  pyhd3eb1b0_0       main/noarch             74 KB
  pycparser                2.20  py_2               main/noarch            Cached
  pydantic                1.7.3  py36h9ed2024_0     main/osx-64              2 MB
  pyopenssl              20.0.1  pyhd3eb1b0_1       main/noarch            Cached
  pyparsing               2.4.7  py_0               main/noarch            Cached
  pypy3.6                 7.3.3  h41cf889_3         conda-forge/osx-64      26 MB
  pysocks                 1.7.1  py36_0             main/osx-64             30 KB
  pytest                  6.2.1  py36hecd8cb5_0     main/osx-64            429 KB
  pytest-datadir          1.3.1  py_0               conda-forge/noarch       7 KB
  pytest-mock             3.5.1  pyhd3eb1b0_0       main/noarch             20 KB
  python                 3.6.12  5_73_pypy          conda-forge/osx-64       5 KB
  python-dateutil         2.8.1  py_0               main/noarch            224 KB
  python_abi                3.6  1_pypy36_pp73      conda-forge/osx-64       4 KB
  pytz                   2020.5  pyhd3eb1b0_0       main/noarch            Cached
  readline                  8.0  h1de35cc_0         main/osx-64            Cached
  requests               2.25.1  pyhd3eb1b0_0       main/noarch            Cached
  requests-mock           1.7.0  py_0               conda-forge/noarch      20 KB
  setuptools             51.1.2  py36hecd8cb5_3     main/osx-64            906 KB
  six                    1.15.0  py36hecd8cb5_0     main/osx-64             27 KB
  soupsieve                 2.1  pyhd3eb1b0_0       main/noarch             30 KB
  sqlite                 3.34.0  h17101e1_0         conda-forge/osx-64     Cached
  tk                     8.6.10  hb0a8c7a_0         main/osx-64            Cached
  toml                   0.10.2  pyhd8ed1ab_0       conda-forge/noarch      18 KB
  tornado                   6.1  py36h9ed2024_0     main/osx-64            642 KB
  typing_extensions     3.7.4.3  py_0               main/noarch             29 KB
  ujson                   4.0.1  py36hb1e8313_0     main/osx-64             47 KB
  urllib3                1.26.2  pyhd3eb1b0_0       main/noarch            Cached
  wheel                  0.36.2  pyhd3eb1b0_0       main/noarch            Cached
  xz                      5.2.5  h1de35cc_0         main/osx-64            Cached
  zipp                    3.4.0  pyhd3eb1b0_0       main/noarch             15 KB
  zlib                   1.2.11  h1de35cc_3         main/osx-64            Cached

  Summary:

  Install: 78 packages

  Total download: 94 MB

As you can see from above, the pypy-related packages:

pypy3.6                 7.3.3  h41cf889_3         conda-forge/osx-64      26 MB
python                 3.6.12  5_73_pypy          conda-forge/osx-64       5 KB

environment

My environment is (truncated below):

boa                       0.3.3                     dev_0    <develop>
conda                     4.9.2            py38hecd8cb5_0    main
conda-build               3.21.3           py38hecd8cb5_0    main
libsolv                   0.7.16               hab81aa3_0    conda-forge
mamba                     0.7.6            py38he6f4b85_0    conda-forge
python                    3.8.5                h26836e1_1    main

@wolfv @SylvainCorlay - I tried to debug/investigate the problem but I confess I got a bit lost and realised that I wouldn't have the time now., so I'm sorry I can't give more details here at the moment. But I was wondering if there could be an easy workaround for this problem? For example, maybe some kind of version constraint hint we can give to instruct the solver to ignore the *pypy* build strings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions