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

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

Closed
3 tasks done
bertaveira opened this issue Sep 17, 2024 · 1 comment · Fixed by #3456
Closed
3 tasks done

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

bertaveira opened this issue Sep 17, 2024 · 1 comment · Fixed by #3456
Labels
type::bug Something isn't working

Comments

@bertaveira
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Other (please describe)

Search tried in issue tracker

error parsing version

Latest version of Mamba

  • My problem is not solved with the latest version

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
Copy link
Member

I confirm that this is a regression for micromamba.

@SylvainCorlay SylvainCorlay added the type::bug Something isn't working label Sep 17, 2024
jjerphan added a commit to jjerphan/mamba that referenced this issue Sep 17, 2024
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
SylvainCorlay pushed a commit that referenced this issue Sep 19, 2024
* test: Add non-regression test for #3453

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Minimal suboptimal fix

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Add edge cases to the env specification

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Add `MatchSpec` parsing subcases

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Complete `test_env_create_whitespace`

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Add kytea test case

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Merge replacement of binary operators

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Lint with pre-commit

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Adapt MatchSpec

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Remove redundant test

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Rename subcase

Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>

* Adapt comparison on versions

Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>

* Adapt test case

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Remove pytorch-cpu as it is not available on windows

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Co-authored-by: Hind-M <70631848+Hind-M@users.noreply.github.com>
jjerphan added a commit to jjerphan/mamba that referenced this issue Sep 30, 2024
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants