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 v2.0 unable to parse environment.yml #3472

Closed
3 tasks done
breakbotz opened this issue Sep 26, 2024 · 4 comments · Fixed by #3483
Closed
3 tasks done

Micromamba v2.0 unable to parse environment.yml #3472

breakbotz opened this issue Sep 26, 2024 · 4 comments · Fixed by #3483
Assignees
Labels
type::bug Something isn't working

Comments

@breakbotz
Copy link

breakbotz commented Sep 26, 2024

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?

Micromamba

Search tried in issue tracker

Creating issue as recommended in mamba-org/micromamba-releases#58

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

A unit test in my GitHub Actions pipeline is failing when attempting to create a micromamba environment using an environment.yaml which has not changed in months.

Using the latest version (curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest), we run micromamba env create --yes --file environment.yml which errors with libmamba Could not solve for environment specs. More detailed error logs provided below and full output can be found in my GHA pipeline run.

mamba info / micromamba info

No response

Logs

error    libmamba Could not solve for environment specs
    The following packages are incompatible
    ├─ aiohttp ~= does not exist (perhaps a typo or a missing channel);
    ├─ anthropic ~= does not exist (perhaps a typo or a missing channel);
    ├─ fluxus ~= does not exist (perhaps a typo or a missing channel);
    ├─ gamma-pytools ~= does not exist (perhaps a typo or a missing channel);
    ├─ google-generativeai ~= does not exist (perhaps a typo or a missing channel);
    ├─ graphviz ~= does not exist (perhaps a typo or a missing channel);
    ├─ groq ~= does not exist (perhaps a typo or a missing channel);
    ├─ ipywidgets ~= does not exist (perhaps a typo or a missing channel);
    ├─ jupyterlab ~= does not exist (perhaps a typo or a missing channel);
    ├─ nbsphinx ~= does not exist (perhaps a typo or a missing channel);
    ├─ notebook ~= does not exist (perhaps a typo or a missing channel);
    ├─ openai ~= does not exist (perhaps a typo or a missing channel);
    ├─ packaging ~= does not exist (perhaps a typo or a missing channel);
    ├─ pandas ~= does not exist (perhaps a typo or a missing channel);
    ├─ pre-commit ~= does not exist (perhaps a typo or a missing channel);
    ├─ pytest-asyncio ~= does not exist (perhaps a typo or a missing channel);
    ├─ pytest-cov ~= does not exist (perhaps a typo or a missing channel);
    ├─ pytest ~= does not exist (perhaps a typo or a missing channel);
    ├─ python-dotenv ~= does not exist (perhaps a typo or a missing channel);
    ├─ python-graphviz ~= does not exist (perhaps a typo or a missing channel);
    ├─ pytorch ~= does not exist (perhaps a typo or a missing channel);
    ├─ sphinx-autodoc-typehints ~= does not exist (perhaps a typo or a missing channel);
    ├─ sphinx ~= does not exist (perhaps a typo or a missing channel);
    └─ transformers ~= does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs
Error: Process completed with exit code 1.

environment.yml

name: artkit
channels:
  - bcgx
  - conda-forge
  - defaults
dependencies:
  # Python
  - python                   ~= 3.10.14

  # Additional libraries
  - fluxus                   ~= 1.0
  - gamma-pytools            ~= 3.0
  - pandas                   ~= 2.2
  - python-dotenv            ~= 1.0
  - graphviz                 ~= 9.0
  - python-graphviz          ~= 0.20
  - boto3                    ~= 1.34.0
  - moto                     ~= 5.0.11

  # LLM provider packages:
  - openai                   ~= 1.34
  - groq                     ~= 0.9
  - anthropic                ~= 0.26
  - google-generativeai      ~= 0.6
  - google-cloud-aiplatform  ~= 1.62.0

  # The following are required for huggingface:
  - aiohttp                  ~= 3.9
  - pytorch                  ~= 2.3
  - transformers             ~= 4.41

  # Sphinx documentation build
  - nbsphinx                 ~= 0.9
  - sphinx                   ~= 7.2
  - sphinx-autodoc-typehints ~= 1.25
  - pydata-sphinx-theme      ~= 0.15.1
  - packaging                ~= 24.1

  # Notebooks
  - ipywidgets               ~= 8.1
  - jupyterlab               ~= 4.2
  - notebook                 ~= 7.2

  # DevOps
  - pytest                   ~= 8.2
  - pytest-asyncio           ~= 0.23
  - pytest-cov               ~= 5.0
  - pre-commit               ~= 3.7

~/.condarc

No response

@JohanMabille
Copy link
Member

JohanMabille commented Sep 26, 2024

I could reproduce the issue locally (not on CI affected by the GHA bug downloading the wrong micromamba release) with micromamba downloaded from micromamba-releases too.

@glass-ships
Copy link

glass-ships commented Sep 27, 2024

Definitely noticing this and related issues, like hanging on Solving environment: ...working... as well

Mamba 2.0 seems to have broken way more things than it fixed/improved lol

@jjerphan
Copy link
Member

This is a regression, micromamba 1.5 works on this example.

@jjerphan
Copy link
Member

Bisecting shows that b9706dc from #3089 introduced this issue.

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.

4 participants