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 is not recognized as an internal or external command 2.0.0 #227

Open
ktsitsi opened this issue Sep 27, 2024 · 6 comments
Open
Labels
bug Something isn't working

Comments

@ktsitsi
Copy link

ktsitsi commented Sep 27, 2024

Yesterday we noticed a failure in our CI only on the windows-latest runner where we were getting the following error:

'"C:\Users\runneradmin\micromamba\condabin\micromamba"' is not recognized as an internal or external command,
operable program or batch file.

using the mamba-org/setup-micromamba@v1. while running a simple pre-commit check using the env.

Run micromamba run -n test pre-commit run -a

Taking a look at the logs the only difference we notice is that micromamba info
was now fetching

libmamba version : 2.0.0
micromamba version : 2.0.0

We were able to resolve by pinning to mamba-org/[email protected] with the micromamba-version: 1.5.10-0 following similar approach as commented in #225

Runner Logs here

@jeremyleung521
Copy link

jeremyleung521 commented Oct 1, 2024

Was hoping mamba=2.0.1 would fix this (there was a fix for a windows bug on mamba activate), but that doesn't seem to be case. Not sure if this is a problem on setup-micromamba's end or regular mamba's end?

Runner Logs: https://github.com/jeremyleung521/LPATH/actions/runs/11088430490/job/30931937962#step:4:362
Note: Can't see that it's running 2.0.1 in the windows jobs due to the order things are printed, but the other tests (macos, ubuntu) do say that 2.0.1 is pulled.

EDIT: It's being tracked here: mamba-org/mamba#3478

@pavelzw
Copy link
Member

pavelzw commented Oct 2, 2024

i would expect that this is a micromamba issue. wdyt @jjerphan?

@jjerphan
Copy link
Member

jjerphan commented Oct 2, 2024

It is. There's a problem with the activation script on Windows as of micromamba 2.0. We are currently addressing the problem.

@jjerphan
Copy link
Member

jjerphan commented Oct 2, 2024

2.0.2 is being released and should fix this issue.

@jeremyleung521
Copy link

2.0.2 is being released and should fix this issue.

Thank you! Just have to wait for micromamba-releases to update, then should be able to test!

@jeremyleung521
Copy link

I just updated to v2 (2.0.2) and still having the same problem... :/ Though this time, it's failing in the 'pip' section of the environment file.

 Or to execute a single command in this environment, use:
  
      micromamba run -n test mycommand
  
  warning  libmamba You are using 'pip' as an additional package manager.
      Be aware that packages installed with 'pip' are managed independently from 'conda-forge' channel.
  
  Installing pip packages: pylcs, ray, timedinput, argparse-tui
  '"C:\Users\runneradmin\micromamba\condabin\micromamba"' is not recognized as an internal or external command,
  operable program or batch file.
  critical libmamba pip failed to install packages

Log file: https://github.com/jeremyleung521/LPATH/actions/runs/11182636779/job/31089361519#step:4:370

EDIT: It's this bug: mamba-org/mamba#3467.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants