-
Notifications
You must be signed in to change notification settings - Fork 225
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
m2-bash: looses PATHs, prevents any use as a shell to run other commands from conda #12124
Comments
This reverts commit 367688e. Unfortunately bash from m2- set of packages is not a suitable fit ATM. It rewrites PATH so no conda-forge installed packages binaries are seen inside. See ContinuumIO/anaconda-issues#12124 There seems possibly additional side effects (e.g. `conda` itself which is .bat is not found inside that bash session).
This reverts commit 367688e. Unfortunately bash from m2- set of packages is not a suitable fit ATM. It rewrites PATH so no conda-forge installed packages binaries are seen inside. See ContinuumIO/anaconda-issues#12124 There seems possibly additional side effects (e.g. `conda` itself which is .bat is not found inside that bash session).
Please provide detailed reproduction instructions. |
here is an example with trying to use 7z from outside and within bash
so distilled set of commands to try
|
It is required to use -lc here, this is an MSYS2-ism. |
Also you must set MSYS2_PATH_TYPE to inherit, again, an MSYS2-ism. |
Well, that would still preclude any "seamless" use of Moreover, it seems still to not work:
|
OK, I'll look into this when I am back on Windows. |
FYI: It's a somewhat common idiom on When doing so it first sets the env vars Ray mentioned: This seems to work well for that use-case at least. |
@dhirschfeld thank you for the pointer! in our case entry points would be |
This reverts commit 367688e. Unfortunately bash from m2- set of packages is not a suitable fit ATM. It rewrites PATH so no conda-forge installed packages binaries are seen inside. See ContinuumIO/anaconda-issues#12124 There seems possibly additional side effects (e.g. `conda` itself which is .bat is not found inside that bash session).
@mingwandroid Any guidance on how to make |
I'm also trying to get interactive bash to work on win10/conda. It looks like "/c/Users/USERNAME/Miniconda3/Library/bin" is missing in bash. Maybe other too, but that's where git is installed for instance. Adding PATH=$PATH:/c/Users/USERNAME/Miniconda3/Library/bin to .bashrc is my current workaround. |
you can see that
C:\Users\DataLad\miniconda3\envs\datalad-2\Library\usr\bin
andC:\Users\DataLad\miniconda3\envs\datalad-2\Library\bin
are not translated, so anything (e.g.7z
from7zip
) installed in those paths, is not accessible inside thatbash
session. That prevents any reliance onbash
as the general shell to execute commands from conda.Moreover, even
conda
is not executable, likely because it is originallyconda.bat
so it might be a different issue altogether.The text was updated successfully, but these errors were encountered: