mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.98k stars 359 forks source link

Micromamba 2.0rc5 - libmamba Error parsing version "" #3453

Closed bertaveira closed 2 months ago

bertaveira commented 2 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Other (please describe)

Search tried in issue tracker

error parsing version

Latest version of Mamba

Tried in Conda?

Not applicable

Describe your issue

I tried the latest rc of micromamba 2.0rc5 as well as the latest master build #af81975 for windows. I noticed it did not work to create an environment from a yaml spec file because it would not accept versions of packages where it would request greater or lower than a certain version. If I make it greater or equal then it works.

Example of a YAML file that fails:

channels:
  - conda-forge
dependencies:
  - python > 3.11
  - numpy < 2.0

With this file if one would create an environment using micromamba create -f .\environment.yaml -p .\.env you get this fault:

critical libmamba Error parsing version "". Empty version.

One can make it not throw that error and create an environment just by changing the versions to this:

channels:
  - conda-forge
dependencies:
  - python >= 3.11
  - numpy <= 2.0

mamba info / micromamba info

No response

Logs

No response

environment.yml

channels:
  - conda-forge
dependencies:
  - python > 3.11
  - numpy < 2.0

~/.condarc

No response

jjerphan commented 2 months ago

I confirm that this is a regression for micromamba.