conda-lock
conda-lock copied to clipboard
conda-lock produces lock file which lists a package twice with different versions
Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
What happened?
In some situations conda-lock
produces a lock file which lists a package twice, with different versions and different sources. In my case I pinned the onnx
package from conda-forge to version 1.13.1 but the pip dependencies somehow add onnx 1.14.1 (which is the latest released version).
I expected the onnx
package to be added only once (using the pinned version 1.13.1). If this version does not satisfy all requirements the user should see an error when creating the lock file.
Btw: If #524 had been merged, I would have noticed the problem much earlier using git diff
.
# dependencies.yml
name: duplicates
channels:
- conda-forge # https://conda.anaconda.org/conda-forge/
dependencies:
- python=3.10.10
- onnx==1.13.1
- pip:
- onnxruntime-gpu==1.14.1
- onnxsim
$ conda-lock --micromamba --file dependencies.yml --lockfile repo-lock.yml --platform linux-64; cat repo-lock.yml
...
version: 1
metadata:
content_hash:
linux-64: 549040d1d468c710bb83d60a47b4c42637a7fc19ef36c856d9097a126105578a
channels:
- url: conda-forge
used_env_vars: []
platforms:
- linux-64
sources:
- dependencies.yml
package:
- name: _libgcc_mutex
version: '0.1'
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
hash:
md5: d7c89558ba9fa0495403155b64376d81
sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726
category: main
optional: false
- name: ca-certificates
version: 2023.7.22
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2023.7.22-hbcca054_0.conda
hash:
md5: a73ecd2988327ad4c8f2c331482917f2
sha256: 525b7b6b5135b952ec1808de84e5eca57c7c7ff144e29ef3e96ae4040ff432c1
category: main
optional: false
- name: ld_impl_linux-64
version: '2.40'
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-h41732ed_0.conda
hash:
md5: 7aca3059a1729aa76c597603f10b0dd3
sha256: f6cc89d887555912d6c61b295d398cff9ec982a3417d38025c45d5dd9b9e79cd
category: main
optional: false
- name: libstdcxx-ng
version: 13.2.0
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-13.2.0-h7e041cc_2.conda
hash:
md5: 9172c297304f2a20134fc56c97fbe229
sha256: ab22ecdc974cdbe148874ea876d9c564294d5eafa760f403ed4fd495307b4243
category: main
optional: false
- name: python_abi
version: '3.10'
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.10-4_cp310.conda
hash:
md5: 26322ec5d7712c3ded99dd656142b8ce
sha256: 456bec815bfc2b364763084d08b412fdc4c17eb9ccc66a36cb775fa7ac3cbaec
category: main
optional: false
- name: tzdata
version: 2023c
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2023c-h71feb2d_0.conda
hash:
md5: 939e3e74d8be4dac89ce83b20de2492a
sha256: 0449138224adfa125b220154408419ec37c06b0b49f63c5954724325903ecf55
category: main
optional: false
- name: libgomp
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h807b86a_2.conda
hash:
md5: e2042154faafe61969556f28bade94b9
sha256: e1e82348f8296abfe344162b3b5f0ddc2f504759ebeb8b337ba99beaae583b15
category: main
optional: false
- name: _openmp_mutex
version: '4.5'
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
libgomp: '>=7.5.0'
url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
hash:
md5: 73aaf86a425cc6e73fcf236a5a46396d
sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22
category: main
optional: false
- name: libgcc-ng
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
_openmp_mutex: '>=4.5'
url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h807b86a_2.conda
hash:
md5: c28003b0be0494f9a7664389146716ff
sha256: d361d3c87c376642b99c1fc25cddec4b9905d3d9b9203c1c545b8c8c1b04539a
category: main
optional: false
- name: bzip2
version: 1.0.8
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=9.3.0'
url: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h7f98852_4.tar.bz2
hash:
md5: a1fd65c7ccbf10880423d82bca54eb54
sha256: cb521319804640ff2ad6a9f118d972ed76d86bea44e5626c09a13d38f562e1fa
category: main
optional: false
- name: libffi
version: 3.4.2
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=9.4.0'
url: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2
hash:
md5: d645c6d2ac96843a2bfaccd2d62b3ac3
sha256: ab6e9856c21709b7b517e940ae7028ae0737546122f83c2aa5d692860c3b149e
category: main
optional: false
- name: libgfortran5
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=13.2.0'
url: https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-13.2.0-ha4646dd_2.conda
hash:
md5: 78fdab09d9138851dde2b5fe2a11019e
sha256: 55ecf5c46c05a98b4822a041d6e1cb196a7b0606126eb96b24131b7d2c8ca561
category: main
optional: false
- name: libnsl
version: 2.0.1
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hd590300_0.conda
hash:
md5: 30fd6e37fe21f86f4bd26d6ee73eeec7
sha256: 26d77a3bb4dceeedc2a41bd688564fe71bf2d149fdcf117049970bc02ff1add6
category: main
optional: false
- name: libuuid
version: 2.38.1
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda
hash:
md5: 40b61aab5c7ba9ff276c41cfffe6b80b
sha256: 787eb542f055a2b3de553614b25f09eefb0a0931b0c87dbcce6efdfd92f04f18
category: main
optional: false
- name: libzlib
version: 1.2.13
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.13-hd590300_5.conda
hash:
md5: f36c115f1ee199da648e0597ec2047ad
sha256: 370c7c5893b737596fd6ca0d9190c9715d89d888b8c88537ae1ef168c25e82e4
category: main
optional: false
- name: ncurses
version: '6.4'
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.4-hcb278e6_0.conda
hash:
md5: 681105bccc2a3f7f1a837d47d39c9179
sha256: ccf61e61d58a8a7b2d66822d5568e2dc9387883dd9b2da61e1d787ece4c4979a
category: main
optional: false
- name: openssl
version: 3.1.4
manager: conda
platform: linux-64
dependencies:
ca-certificates: ''
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.1.4-hd590300_0.conda
hash:
md5: 412ba6938c3e2abaca8b1129ea82e238
sha256: d15b3e83ce66c6f6fbb4707f2f5c53337124c01fb03bfda1cf25c5b41123efc7
category: main
optional: false
- name: xz
version: 5.2.6
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2
hash:
md5: 2161070d867d1b1204ea749c8eec4ef0
sha256: 03a6d28ded42af8a347345f82f3eebdd6807a08526d47899a42d62d319609162
category: main
optional: false
- name: libgfortran-ng
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
libgfortran5: 13.2.0
url: https://conda.anaconda.org/conda-forge/linux-64/libgfortran-ng-13.2.0-h69a702a_2.conda
hash:
md5: e75a75a6eaf6f318dae2631158c46575
sha256: 767d71999e5386210fe2acaf1b67073e7943c2af538efa85c101e3401e94ff62
category: main
optional: false
- name: libprotobuf
version: 3.21.12
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libstdcxx-ng: '>=12'
libzlib: '>=1.2.13,<1.3.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/libprotobuf-3.21.12-hfc55251_2.conda
hash:
md5: e3a7d4ba09b8dc939b98fef55f539220
sha256: 2df8888c51c23dedc831ba4378bad259e95c3a20a6408f54926a6a6f629f6153
category: main
optional: false
- name: libsqlite
version: 3.43.2
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libzlib: '>=1.2.13,<1.3.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.43.2-h2797004_0.conda
hash:
md5: 4b441a1ee22397d5a27dc1126b849edd
sha256: b30279b67fce2382a93c638625ff2b284324e2347e30bd0acab813d89289c18a
category: main
optional: false
- name: readline
version: '8.2'
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
ncurses: '>=6.3,<7.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda
hash:
md5: 47d31b792659ce70f470b5c82fdfb7a4
sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7
category: main
optional: false
- name: tk
version: 8.6.13
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libzlib: '>=1.2.13,<1.3.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-h2797004_0.conda
hash:
md5: 513336054f884f95d9fd925748f41ef3
sha256: 679e944eb93fde45d0963a22598fafacbb429bb9e7ee26009ba81c4e0c435055
category: main
optional: false
- name: libopenblas
version: 0.3.24
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libgfortran-ng: ''
libgfortran5: '>=12.3.0'
url: https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.24-pthreads_h413a1c8_0.conda
hash:
md5: 6e4ef6ca28655124dcde9bd500e44c32
sha256: c8e080ae4d57506238023e98869928ae93564e6407ef5b0c4d3a337e8c2b7662
category: main
optional: false
- name: python
version: 3.10.10
manager: conda
platform: linux-64
dependencies:
bzip2: '>=1.0.8,<2.0a0'
ld_impl_linux-64: '>=2.36.1'
libffi: '>=3.4,<4.0a0'
libgcc-ng: '>=12'
libnsl: '>=2.0.0,<2.1.0a0'
libsqlite: '>=3.40.0,<4.0a0'
libuuid: '>=2.32.1,<3.0a0'
libzlib: '>=1.2.13,<1.3.0a0'
ncurses: '>=6.3,<7.0a0'
openssl: '>=3.1.0,<4.0a0'
readline: '>=8.2,<9.0a0'
tk: '>=8.6.12,<8.7.0a0'
tzdata: ''
xz: '>=5.2.6,<6.0a0'
pip: ''
url: https://conda.anaconda.org/conda-forge/linux-64/python-3.10.10-he550d4f_0_cpython.conda
hash:
md5: de25afc7041c103c7f510c746bb63435
sha256: 67748307da3fa057d17d4e991f3c60f87595a517b98f4b323a17b5f3dc287159
category: main
optional: false
- name: libblas
version: 3.9.0
manager: conda
platform: linux-64
dependencies:
libopenblas: '>=0.3.24,<1.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/libblas-3.9.0-19_linux64_openblas.conda
hash:
md5: 420f4e9be59d0dc9133a0f43f7bab3f3
sha256: b1311b9414559c5760b08a32e0382ca27fa302c967968aa6f78e042519f728ce
category: main
optional: false
- name: setuptools
version: 68.2.2
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
url: https://conda.anaconda.org/conda-forge/noarch/setuptools-68.2.2-pyhd8ed1ab_0.conda
hash:
md5: fc2166155db840c634a1291a5c35a709
sha256: 851901b1f8f2049edb36a675f0c3f9a98e1495ef4eb214761b048c6f696a06f7
category: main
optional: false
- name: typing_extensions
version: 4.8.0
manager: conda
platform: linux-64
dependencies:
python: '>=3.8'
url: https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.8.0-pyha770c72_0.conda
hash:
md5: 5b1be40a26d10a06f6d4f1f9e19fa0c7
sha256: 38d16b5c53ec1af845d37d22e7bb0e6c934c7f19499123507c5a470f6f8b7dde
category: main
optional: false
- name: wheel
version: 0.41.2
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
url: https://conda.anaconda.org/conda-forge/noarch/wheel-0.41.2-pyhd8ed1ab_0.conda
hash:
md5: 1ccd092478b3e0ee10d7a891adbf8a4f
sha256: 21bcec5373b04d739ab65252b5532b04a08d229865ebb24b5b94902d6d0a77b0
category: main
optional: false
- name: libcblas
version: 3.9.0
manager: conda
platform: linux-64
dependencies:
libblas: 3.9.0
url: https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.9.0-19_linux64_openblas.conda
hash:
md5: d12374af44575413fbbd4a217d46ea33
sha256: 84fddccaf58f42b07af7fb42512bd617efcb072f17bdef27f4c1884dbd33c86a
category: main
optional: false
- name: liblapack
version: 3.9.0
manager: conda
platform: linux-64
dependencies:
libblas: 3.9.0
url: https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.9.0-19_linux64_openblas.conda
hash:
md5: 9f100edf65436e3eabc2a51fc00b2c37
sha256: 58f402aae605ebd0932e1cbbf855cd49dcdfa2fcb6aab790a4f6068ec5937878
category: main
optional: false
- name: pip
version: 23.3.1
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
setuptools: ''
wheel: ''
url: https://conda.anaconda.org/conda-forge/noarch/pip-23.3.1-pyhd8ed1ab_0.conda
hash:
md5: 2400c0b86889f43aa52067161e1fb108
sha256: 435829a03e1c6009f013f29bb83de8b876c388820bf8cf69a7baeec25f6a3563
category: main
optional: false
- name: protobuf
version: 4.21.12
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libprotobuf: '>=3.21.12,<3.22.0a0'
libstdcxx-ng: '>=12'
python: '>=3.10,<3.11.0a0'
python_abi: 3.10.*
setuptools: ''
url: https://conda.anaconda.org/conda-forge/linux-64/protobuf-4.21.12-py310heca2aa9_0.conda
hash:
md5: 90bb7e1b729c4b50272cf78be97ab912
sha256: 38808ff5a9b724d00b12f14ca5c83b40a7b7ada4715a8e8c3b64bf73407bbe5f
category: main
optional: false
- name: typing-extensions
version: 4.8.0
manager: conda
platform: linux-64
dependencies:
typing_extensions: 4.8.0
url: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.8.0-hd8ed1ab_0.conda
hash:
md5: 384462e63262a527bda564fa2d9126c0
sha256: d6e1dddd0c372218ef15912383d351ac8c73465cbf16238017f0269813cafe2d
category: main
optional: false
- name: numpy
version: 1.26.0
manager: conda
platform: linux-64
dependencies:
libblas: '>=3.9.0,<4.0a0'
libcblas: '>=3.9.0,<4.0a0'
libgcc-ng: '>=12'
liblapack: '>=3.9.0,<4.0a0'
libstdcxx-ng: '>=12'
python: '>=3.10,<3.11.0a0'
python_abi: 3.10.*
url: https://conda.anaconda.org/conda-forge/linux-64/numpy-1.26.0-py310hb13e2d6_0.conda
hash:
md5: ac3b67e928cc71548efad9b522d42fef
sha256: d4671e365c2ed30bf8a376bdc65afcbeeae440ca2091c8712ff8f23678f64973
category: main
optional: false
- name: onnx
version: 1.13.1
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libprotobuf: '>=3.21.12,<3.22.0a0'
libstdcxx-ng: '>=12'
numpy: '>=1.21.6,<2.0a0'
protobuf: ''
python: '>=3.10,<3.11.0a0'
python_abi: 3.10.*
typing-extensions: '>=3.6.2.1'
url: https://conda.anaconda.org/conda-forge/linux-64/onnx-1.13.1-py310ha3deec4_2.conda
hash:
md5: f87263531ef87d4a188e59adc60dff5d
sha256: 978c866a8c6d71e452c310c6d3658f0228eb10c0649bb239e82895345c7adca1
category: main
optional: false
- name: flatbuffers
version: 23.5.26
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl
hash:
sha256: c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1
category: main
optional: false
- name: humanfriendly
version: '10.0'
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-none-any.whl
hash:
sha256: 1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477
category: main
optional: false
- name: mdurl
version: 0.1.2
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl
hash:
sha256: 84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8
category: main
optional: false
- name: mpmath
version: 1.3.0
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl
hash:
sha256: a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c
category: main
optional: false
- name: packaging
version: '23.2'
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/ec/1a/610693ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl
hash:
sha256: 8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7
category: main
optional: false
- name: pygments
version: 2.16.1
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl
hash:
sha256: 13fc09fa63bc8d8671a6d247e1eb303c4b343eaee81d861f3404db2935653692
category: main
optional: false
- name: coloredlogs
version: 15.0.1
manager: pip
platform: linux-64
dependencies:
humanfriendly: '>=9.1'
url: https://files.pythonhosted.org/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl
hash:
sha256: 612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934
category: main
optional: false
- name: markdown-it-py
version: 3.0.0
manager: pip
platform: linux-64
dependencies:
mdurl: '>=0.1,<1.0'
url: https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl
hash:
sha256: 355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1
category: main
optional: false
- name: onnx
version: 1.14.1
manager: pip
platform: linux-64
dependencies:
numpy: '*'
protobuf: '>=3.20.2'
typing-extensions: '>=3.6.2.1'
url: https://files.pythonhosted.org/packages/47/d4/f2d212558245e252b936247666c3f5981e6dba62ec470ff8be3df3389364/onnx-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
hash:
sha256: 921ad325b17484698d9d65978e123b1f351328ea50de6f84f25d09d5c7dde361
category: main
optional: false
- name: sympy
version: '1.12'
manager: pip
platform: linux-64
dependencies:
mpmath: '>=0.19'
url: https://files.pythonhosted.org/packages/d2/05/e6600db80270777c4a64238a98d442f0fd07cc8915be2a1c16da7f2b9e74/sympy-1.12-py3-none-any.whl
hash:
sha256: c3588cd4295d0c0f603d0f2ae780587e64e2efeedb3521e46b9bb1d08d184fa5
category: main
optional: false
- name: onnxruntime-gpu
version: 1.14.1
manager: pip
platform: linux-64
dependencies:
coloredlogs: '*'
flatbuffers: '*'
numpy: '>=1.21.6'
packaging: '*'
protobuf: '*'
sympy: '*'
url: https://files.pythonhosted.org/packages/39/2f/7643c7ffda0598b24b997dbc93be5e0b7a2074a33247c2b3230b3f1e9844/onnxruntime_gpu-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
hash:
sha256: 6cd3118ec8c0567006f5998a7467677c88ad8cfbb6d3b26fd17f7c3326762a5e
category: main
optional: false
- name: rich
version: 13.6.0
manager: pip
platform: linux-64
dependencies:
pygments: '>=2.13.0,<3.0.0'
markdown-it-py: '>=2.2.0'
url: https://files.pythonhosted.org/packages/be/2a/4e62ff633612f746f88618852a626bbe24226eba5e7ac90e91dcfd6a414e/rich-13.6.0-py3-none-any.whl
hash:
sha256: 2b38e2fe9ca72c9a00170a1a2d20c63c790d0e10ef1fe35eba76e1e7b1d7d245
category: main
optional: false
- name: onnxsim
version: 0.4.35
manager: pip
platform: linux-64
dependencies:
onnx: '*'
rich: '*'
url: https://files.pythonhosted.org/packages/da/0b/ba622076ab256e97e3da0febea33df8c90ee6e4c42f34c0213fbcdf74ccd/onnxsim-0.4.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
hash:
sha256: d3102218d6d84991c03041662f1b637af88337c635c23358ba0e112dd161ee91
category: main
optional: false
Conda Info
$ micromamba info
libmamba version : 1.5.1
micromamba version : 1.5.1
curl version : libcurl/8.4.0 OpenSSL/3.1.3 zlib/1.2.13 zstd/1.5.5 libssh2/1.11.0 nghttp2/1.52.0
libarchive version : libarchive 3.7.2 zlib/1.2.13 bz2lib/1.0.8 libzstd/1.5.5
envs directories : /home/devuser/micromamba/envs
package cache : /home/devuser/micromamba/pkgs
/home/devuser/.mamba/pkgs
environment : duplicates (active)
env location : /home/devuser/micromamba/envs/duplicates
user config files : /home/devuser/.mambarc
populated config files :
virtual packages : __unix=0=0
__linux=6.5.7=0
__glibc=2.37=0
__archspec=1=x86_64
channels :
base environment : /home/devuser/micromamba
platform : linux-64
Conda Config
$ micromamba config sources
Configuration files (by precedence order):
Conda list
$ micromamba list
List of packages in environment: "/home/devuser/micromamba/envs/duplicates"
Name Version Build Channel
───────────────────────────────────────────────────────────────────────────
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
annotated-types 0.6.0 pyhd8ed1ab_0 conda-forge
appdirs 1.4.4 pyh9f0ad1d_0 conda-forge
brotli-python 1.1.0 py312h30efb56_1 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
ca-certificates 2023.7.22 hbcca054_0 conda-forge
cachecontrol 0.13.1 pyhd8ed1ab_0 conda-forge
cachecontrol-with-filecache 0.13.1 pyhd8ed1ab_0 conda-forge
cachy 0.3.0 pyhd8ed1ab_1 conda-forge
certifi 2023.7.22 pyhd8ed1ab_0 conda-forge
cffi 1.16.0 py312hf06ca03_0 conda-forge
charset-normalizer 3.3.1 pyhd8ed1ab_0 conda-forge
click 8.1.7 unix_pyh707e725_0 conda-forge
click-default-group 1.2.4 pyhd8ed1ab_0 conda-forge
clikit 0.6.2 pyhd8ed1ab_2 conda-forge
conda-lock 2.4.1 pyhd8ed1ab_0 conda-forge
crashtest 0.4.1 pyhd8ed1ab_0 conda-forge
cryptography 41.0.5 py312h241aef2_0 conda-forge
dbus 1.13.6 h5008d03_3 conda-forge
distlib 0.3.7 pyhd8ed1ab_0 conda-forge
ensureconda 1.4.3 pyhd8ed1ab_0 conda-forge
expat 2.5.0 hcb278e6_1 conda-forge
filelock 3.12.4 pyhd8ed1ab_0 conda-forge
gettext 0.21.1 h27087fc_0 conda-forge
gitdb 4.0.11 pyhd8ed1ab_0 conda-forge
gitpython 3.1.40 pyhd8ed1ab_0 conda-forge
html5lib 1.1 pyh9f0ad1d_0 conda-forge
idna 3.4 pyhd8ed1ab_0 conda-forge
jaraco.classes 3.3.0 pyhd8ed1ab_0 conda-forge
jeepney 0.8.0 pyhd8ed1ab_0 conda-forge
jinja2 3.1.2 pyhd8ed1ab_1 conda-forge
keyring 24.2.0 py312h7900ff3_1 conda-forge
ld_impl_linux-64 2.40 h41732ed_0 conda-forge
libexpat 2.5.0 hcb278e6_1 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 13.2.0 h807b86a_2 conda-forge
libglib 2.78.0 hebfc3b9_0 conda-forge
libgomp 13.2.0 h807b86a_2 conda-forge
libiconv 1.17 h166bdaf_0 conda-forge
libnsl 2.0.1 hd590300_0 conda-forge
libsqlite 3.43.2 h2797004_0 conda-forge
libstdcxx-ng 13.2.0 h7e041cc_2 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libzlib 1.2.13 hd590300_5 conda-forge
markupsafe 2.1.3 py312h98912ed_1 conda-forge
more-itertools 10.1.0 pyhd8ed1ab_0 conda-forge
msgpack-python 1.0.6 py312h8572e83_0 conda-forge
ncurses 6.4 hcb278e6_0 conda-forge
openssl 3.1.4 hd590300_0 conda-forge
packaging 23.2 pyhd8ed1ab_0 conda-forge
pastel 0.2.1 pyhd8ed1ab_0 conda-forge
pcre2 10.40 hc3806b6_0 conda-forge
pip 23.3.1 pyhd8ed1ab_0 conda-forge
pkginfo 1.9.6 pyhd8ed1ab_0 conda-forge
platformdirs 3.11.0 pyhd8ed1ab_0 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pydantic 2.4.2 pyhd8ed1ab_1 conda-forge
pydantic-core 2.10.1 py312h4b3b743_0 conda-forge
pylev 1.4.0 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.12.0 hab00c5b_0_cpython conda-forge
python_abi 3.12 4_cp312 conda-forge
pyyaml 6.0.1 py312h98912ed_1 conda-forge
readline 8.2 h8228510_1 conda-forge
requests 2.31.0 pyhd8ed1ab_0 conda-forge
ruamel.yaml 0.18.2 py312h98912ed_0 conda-forge
ruamel.yaml.clib 0.2.7 py312h98912ed_2 conda-forge
secretstorage 3.3.3 py312h7900ff3_2 conda-forge
setuptools 68.2.2 pyhd8ed1ab_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
smmap 5.0.0 pyhd8ed1ab_0 conda-forge
tk 8.6.13 h2797004_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
tomlkit 0.12.1 pyha770c72_0 conda-forge
toolz 0.12.0 pyhd8ed1ab_0 conda-forge
typing-extensions 4.8.0 hd8ed1ab_0 conda-forge
typing_extensions 4.8.0 pyha770c72_0 conda-forge
tzdata 2023c h71feb2d_0 conda-forge
urllib3 1.26.18 pyhd8ed1ab_0 conda-forge
virtualenv 20.24.6 pyhd8ed1ab_0 conda-forge
webencodings 0.5.1 pyhd8ed1ab_2 conda-forge
wheel 0.41.2 pyhd8ed1ab_0 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
yaml 0.2.5 h7f98852_2 conda-forge
Thanks a lot for the report. There is unfortunately some really gnarly logic around the handling of mixed conda/pip requirements. One of my goals is to rewrite it to make it clear what's going on so that these sorts of issues can be diagnosed, but realistically that's probably a ways off. I could definitely use any help!
Regarding #524 it just needs to be tested. If you could certify that the alphabetized lockfiles install correctly with conda-lock >=1.0.5
and micromamba >=1.0.0
then we could get that merged and released promptly.
I also have a similar problem.
In my case, I specified the pytorch
version to 2.0.1
. But in the pip
dependencies, a new pytorch
version is locked. It seems conda-lock
doesn't respect the version compat set in the conda
section. The result is, first the explicitly specified version is installed through micromamba
, and then it is upgrade to the one set in the pip dependencies.
Here's the lock file I got: conda-lock.txt
@findmyway, thanks for the report. Could you please also provide the corresponding source files so that I can reproduce your lockfile?
@findmyway, thanks for the report. Could you please also provide the corresponding source files so that I can reproduce your lockfile?
Strange, I modified the original pyproject.toml
file multiple times and I couldn't reproduce it now 😢
It's due to a conflict between the conda and pip constraints. For example, you can trigger this explicitly.
environment.yml
channels:
- conda-forge
platforms:
- linux-64
dependencies:
- python =3.12
- click
- pip:
- click <8
conda-lock.yml
Notice that click
is included twice.
conda-lock.yml
# This lock file was generated by conda-lock (https://github.com/conda/conda-lock). DO NOT EDIT!
#
# A "lock file" contains a concrete list of package versions (with checksums) to be installed. Unlike
# e.g. `conda env create`, the resulting environment will not change as new package versions become
# available, unless you explicitly update the lock file.
#
# Install this environment as "YOURENV" with:
# conda-lock install -n YOURENV --file conda-lock.yml
# To update a single package to the latest version compatible with the version constraints in the source:
# conda-lock lock --lockfile conda-lock.yml --update PACKAGE
# To re-solve the entire environment, e.g. after changing a version constraint in the source file:
# conda-lock -f environment.yml --lockfile conda-lock.yml
version: 1
metadata:
content_hash:
linux-64: 8fe44e7074f767a128775867f716711d0842cff47d3c6c275712c61570d37fa9
channels:
- url: conda-forge
used_env_vars: []
platforms:
- linux-64
sources:
- environment.yml
package:
- name: _libgcc_mutex
version: '0.1'
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
hash:
md5: d7c89558ba9fa0495403155b64376d81
sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726
category: main
optional: false
- name: _openmp_mutex
version: '4.5'
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
libgomp: '>=7.5.0'
url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
hash:
md5: 73aaf86a425cc6e73fcf236a5a46396d
sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22
category: main
optional: false
- name: bzip2
version: 1.0.8
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-hd590300_5.conda
hash:
md5: 69b8b6202a07720f448be700e300ccf4
sha256: 242c0c324507ee172c0e0dd2045814e746bb303d1eb78870d182ceb0abc726a8
category: main
optional: false
- name: ca-certificates
version: 2023.11.17
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2023.11.17-hbcca054_0.conda
hash:
md5: 01ffc8d36f9eba0ce0b3c1955fa780ee
sha256: fb4b9f4b7d885002db0b93e22f44b5b03791ef3d4efdc9d0662185a0faafd6b6
category: main
optional: false
- name: click
version: 8.1.7
manager: conda
platform: linux-64
dependencies:
__unix: ''
python: '>=3.8'
url: https://conda.anaconda.org/conda-forge/noarch/click-8.1.7-unix_pyh707e725_0.conda
hash:
md5: f3ad426304898027fc619827ff428eca
sha256: f0016cbab6ac4138a429e28dbcb904a90305b34b3fe41a9b89d697c90401caec
category: main
optional: false
- name: ld_impl_linux-64
version: '2.40'
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-h41732ed_0.conda
hash:
md5: 7aca3059a1729aa76c597603f10b0dd3
sha256: f6cc89d887555912d6c61b295d398cff9ec982a3417d38025c45d5dd9b9e79cd
category: main
optional: false
- name: libexpat
version: 2.5.0
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.5.0-hcb278e6_1.conda
hash:
md5: 6305a3dd2752c76335295da4e581f2fd
sha256: 74c98a563777ae2ad71f1f74d458a8ab043cee4a513467c159ccf159d0e461f3
category: main
optional: false
- name: libffi
version: 3.4.2
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=9.4.0'
url: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2
hash:
md5: d645c6d2ac96843a2bfaccd2d62b3ac3
sha256: ab6e9856c21709b7b517e940ae7028ae0737546122f83c2aa5d692860c3b149e
category: main
optional: false
- name: libgcc-ng
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
_openmp_mutex: '>=4.5'
url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.2.0-h807b86a_3.conda
hash:
md5: 23fdf1fef05baeb7eadc2aed5fb0011f
sha256: 5e88f658e07a30ab41b154b42c59f079b168acfa9551a75bdc972099453f4105
category: main
optional: false
- name: libgomp
version: 13.2.0
manager: conda
platform: linux-64
dependencies:
_libgcc_mutex: '0.1'
url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.2.0-h807b86a_3.conda
hash:
md5: 7124cbb46b13d395bdde68f2d215c989
sha256: 6ebedee39b6bbbc969715d0d7fa4b381cce67e1139862604ffa393f821c08e81
category: main
optional: false
- name: libnsl
version: 2.0.1
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hd590300_0.conda
hash:
md5: 30fd6e37fe21f86f4bd26d6ee73eeec7
sha256: 26d77a3bb4dceeedc2a41bd688564fe71bf2d149fdcf117049970bc02ff1add6
category: main
optional: false
- name: libsqlite
version: 3.44.2
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libzlib: '>=1.2.13,<1.3.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.44.2-h2797004_0.conda
hash:
md5: 3b6a9f225c3dbe0d24f4fedd4625c5bf
sha256: ee2c4d724a3ed60d5b458864d66122fb84c6ce1df62f735f90d8db17b66cd88a
category: main
optional: false
- name: libuuid
version: 2.38.1
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda
hash:
md5: 40b61aab5c7ba9ff276c41cfffe6b80b
sha256: 787eb542f055a2b3de553614b25f09eefb0a0931b0c87dbcce6efdfd92f04f18
category: main
optional: false
- name: libzlib
version: 1.2.13
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.13-hd590300_5.conda
hash:
md5: f36c115f1ee199da648e0597ec2047ad
sha256: 370c7c5893b737596fd6ca0d9190c9715d89d888b8c88537ae1ef168c25e82e4
category: main
optional: false
- name: ncurses
version: '6.4'
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.4-h59595ed_2.conda
hash:
md5: 7dbaa197d7ba6032caf7ae7f32c1efa0
sha256: 91cc03f14caf96243cead96c76fe91ab5925a695d892e83285461fb927dece5e
category: main
optional: false
- name: openssl
version: 3.2.0
manager: conda
platform: linux-64
dependencies:
ca-certificates: ''
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.2.0-hd590300_1.conda
hash:
md5: 603827b39ea2b835268adb8c821b8570
sha256: 80efc6f429bd8e622d999652e5cba2ca56fcdb9c16a439d2ce9b4313116e4a87
category: main
optional: false
- name: pip
version: 23.3.1
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
setuptools: ''
wheel: ''
url: https://conda.anaconda.org/conda-forge/noarch/pip-23.3.1-pyhd8ed1ab_0.conda
hash:
md5: 2400c0b86889f43aa52067161e1fb108
sha256: 435829a03e1c6009f013f29bb83de8b876c388820bf8cf69a7baeec25f6a3563
category: main
optional: false
- name: python
version: 3.12.0
manager: conda
platform: linux-64
dependencies:
bzip2: '>=1.0.8,<2.0a0'
ld_impl_linux-64: '>=2.36.1'
libexpat: '>=2.5.0,<3.0a0'
libffi: '>=3.4,<4.0a0'
libgcc-ng: '>=12'
libnsl: '>=2.0.0,<2.1.0a0'
libsqlite: '>=3.43.0,<4.0a0'
libuuid: '>=2.38.1,<3.0a0'
libzlib: '>=1.2.13,<1.3.0a0'
ncurses: '>=6.4,<7.0a0'
openssl: '>=3.1.3,<4.0a0'
readline: '>=8.2,<9.0a0'
tk: '>=8.6.13,<8.7.0a0'
tzdata: ''
xz: '>=5.2.6,<6.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/python-3.12.0-hab00c5b_0_cpython.conda
hash:
md5: 7f97faab5bebcc2580f4f299285323da
sha256: 5398ebae6a1ccbfd3f76361eac75f3ac071527a8072627c4bf9008c689034f48
category: main
optional: false
- name: readline
version: '8.2'
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
ncurses: '>=6.3,<7.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda
hash:
md5: 47d31b792659ce70f470b5c82fdfb7a4
sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7
category: main
optional: false
- name: setuptools
version: 68.2.2
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
url: https://conda.anaconda.org/conda-forge/noarch/setuptools-68.2.2-pyhd8ed1ab_0.conda
hash:
md5: fc2166155db840c634a1291a5c35a709
sha256: 851901b1f8f2049edb36a675f0c3f9a98e1495ef4eb214761b048c6f696a06f7
category: main
optional: false
- name: tk
version: 8.6.13
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
libzlib: '>=1.2.13,<1.3.0a0'
url: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda
hash:
md5: d453b98d9c83e71da0741bb0ff4d76bc
sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e
category: main
optional: false
- name: tzdata
version: 2023c
manager: conda
platform: linux-64
dependencies: {}
url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2023c-h71feb2d_0.conda
hash:
md5: 939e3e74d8be4dac89ce83b20de2492a
sha256: 0449138224adfa125b220154408419ec37c06b0b49f63c5954724325903ecf55
category: main
optional: false
- name: wheel
version: 0.42.0
manager: conda
platform: linux-64
dependencies:
python: '>=3.7'
url: https://conda.anaconda.org/conda-forge/noarch/wheel-0.42.0-pyhd8ed1ab_0.conda
hash:
md5: 1cdea58981c5cbc17b51973bcaddcea7
sha256: 80be0ccc815ce22f80c141013302839b0ed938a2edb50b846cf48d8a8c1cfa01
category: main
optional: false
- name: xz
version: 5.2.6
manager: conda
platform: linux-64
dependencies:
libgcc-ng: '>=12'
url: https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2
hash:
md5: 2161070d867d1b1204ea749c8eec4ef0
sha256: 03a6d28ded42af8a347345f82f3eebdd6807a08526d47899a42d62d319609162
category: main
optional: false
- name: click
version: 7.1.2
manager: pip
platform: linux-64
dependencies: {}
url: https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl
hash:
sha256: dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc
category: main
optional: false