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

Error on micromamba install on Windows Git Bash #10

Open
2 tasks done
kylekeppler opened this issue Sep 26, 2023 · 1 comment
Open
2 tasks done

Error on micromamba install on Windows Git Bash #10

kylekeppler opened this issue Sep 26, 2023 · 1 comment

Comments

@kylekeppler
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

How did you install Mamba?

Micromamba

Search tried in issue tracker

ps unknown option

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

Error using recommended micromamba install script on Windows Git Bash:

"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
ps: unknown option -- o

Indeed, the ps installed in my Git Bash does not have -o:

The installation continues and appears to work though.

$ ps -h
Usage: ps [-aefls] [-u UID] [-p PID]

Report process status

 -a, --all       show processes of all users
 -e, --everyone  show processes of all users
 -f, --full      show process uids, ppids
 -h, --help      output usage information and exit
 -l, --long      show process uids, ppids, pgids, winpids
 -p, --process   show information for specified PID
 -s, --summary   show process summary
 -u, --user      list processes owned by UID
 -V, --version   output version information and exit
 -W, --windows   show windows as well as cygwin processes

With no options, ps outputs the long format by default

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response

@AntoinePrv AntoinePrv transferred this issue from mamba-org/mamba Sep 28, 2023
@AntoinePrv
Copy link
Member

Hi @kylekeppler, it must come from this line:
https://github.com/mamba-org/micromamba-releases/blob/7225fdb6de390fe6b69c9cfc7fa4a5447c58d81a/install.sh#L6C1-L6C36

Since this is optional, maybe we can add a fallback like so $(ps -o comm $PPID 2>/dev/null || echo "failed" | tail -1).
What does ps -o comm $PPID 2>/dev/null || echo "failed" | tail -1 produce for you? what about echo ${SHELL}?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants