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

(eval):10: parse error near `^M' #612

Open
1 task done
serious-gist opened this issue Jul 20, 2024 · 2 comments
Open
1 task done

(eval):10: parse error near `^M' #612

serious-gist opened this issue Jul 20, 2024 · 2 comments
Labels
bug Something isn't working windows wsl Windows Subsystem for Linux

Comments

@serious-gist
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Expected Behaviour
windows11 + ohmyzsh + anaconda

Actual Behaviour
conda init zsh

shell will add this code to my .zshrc

if [ -f '/d/Softwares/Miniforge/Scripts/conda.exe' ]; then eval "$('/d/Softwares/Miniforge/Scripts/conda.exe' 'shell.zsh' 'hook')" fi

Steps to Reproduce
➜ ~ conda init
no change D:\Softwares\Miniforge\Scripts\conda.exe
no change D:\Softwares\Miniforge\Scripts\conda-env.exe
no change D:\Softwares\Miniforge\Scripts\conda-script.py
no change D:\Softwares\Miniforge\Scripts\conda-env-script.py
no change D:\Softwares\Miniforge\condabin\conda.bat
no change D:\Softwares\Miniforge\Library\bin\conda.bat
no change D:\Softwares\Miniforge\condabin_conda_activate.bat
no change D:\Softwares\Miniforge\condabin\rename_tmp.bat
no change D:\Softwares\Miniforge\condabin\conda_auto_activate.bat
no change D:\Softwares\Miniforge\condabin\conda_hook.bat
no change D:\Softwares\Miniforge\Scripts\activate.bat
no change D:\Softwares\Miniforge\condabin\activate.bat
no change D:\Softwares\Miniforge\condabin\deactivate.bat
no change D:\Softwares\Miniforge\Scripts\activate
no change D:\Softwares\Miniforge\Scripts\deactivate
no change D:\Softwares\Miniforge\etc\profile.d\conda.sh
no change D:\Softwares\Miniforge\etc\fish\conf.d\conda.fish
no change D:\Softwares\Miniforge\shell\condabin\Conda.psm1
no change D:\Softwares\Miniforge\shell\condabin\conda-hook.ps1
no change D:\Softwares\Miniforge\Lib\site-packages\xontrib\conda.xsh
no change D:\Softwares\Miniforge\etc\profile.d\conda.csh
no change C:\Users\qiqiang.wang\Documents\WindowsPowerShell\profile.ps1
no change HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
No action taken.

➜ ~ conda activate base

CondaError: Run 'conda init' before 'conda activate'

Installed packages

Miniforge 

Trying to activate conda env in git bash using zsh shell.

Environment info

Miniforge 

Trying to activate conda env in git bash using zsh shell.
@serious-gist serious-gist added the bug Something isn't working label Jul 20, 2024
@hmaarrfk hmaarrfk added wsl Windows Subsystem for Linux windows labels Jul 20, 2024
@hmaarrfk
Copy link
Contributor

are you using WSL?

ps. i'm no windows expect, but it looks like you have "unix" in windows so i'm trying to make sure we have the full information about your setup.

@jaimergp
Copy link
Member

That ^M symbol is usually a tell-tale of Windows line endings on Unix stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows wsl Windows Subsystem for Linux
Development

No branches or pull requests

3 participants