NCAR / wrf_python_tutorial

Student Workbook Repository for the wrf-python Tutorial
65 stars 31 forks source link

Failure of conda activate and init tcsh #1

Open powersjg opened 3 years ago

powersjg commented 3 years ago

In preparation of the tutorial, I tried to activate conda via: conda activate wp_env .

Got error msg: CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init

Tried to init shell via: conda init tcsh . Error output received per the attached file. "An unexpected error has occurred."

Is something missing? What to do? I couldn't run the jupyter notebook, as suggested in the e-mail about the tutorial.

Thanks. conda_init.out.txt

andreasanhaeuser commented 3 years ago

I get a similar issue in bash:

$ conda activate wp_env

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.            
To initialize your shell, run                                                                         

    $ conda init <SHELL_NAME>    

So I do this:

$ conda init bash
no change     /home/x/anaconda3/condabin/conda
no change     /home/x/anaconda3/bin/conda
no change     /home/x/anaconda3/bin/conda-env
no change     /home/x/anaconda3/bin/activate
no change     /home/x/anaconda3/bin/deactivate
no change     /home/x/anaconda3/etc/profile.d/conda.sh
no change     /home/x/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/x/anaconda3/shell/condabin/Conda.psm1
no change     /home/x/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/x/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/x/anaconda3/etc/profile.d/conda.csh
no change
   /home/x/.bashrc
No action taken.

After closing the shell, reopening it and trying to conda activate wp_env, I get the same error message again.

powersjg commented 3 years ago

Thanks for this info. Interesting that the error is also there with bash.

On Mon, Jun 7, 2021 at 8:30 AM andreasanhaeuser @.***> wrote:

I get a similar issue in bash:

$ conda activate wp_env

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run

$ conda init <SHELL_NAME>

So I do this:

$ conda init bash no change /home/x/anaconda3/condabin/conda no change /home/x/anaconda3/bin/conda no change /home/x/anaconda3/bin/conda-env no change /home/x/anaconda3/bin/activate no change /home/x/anaconda3/bin/deactivate no change /home/x/anaconda3/etc/profile.d/conda.sh no change /home/x/anaconda3/etc/fish/conf.d/conda.fish no change /home/x/anaconda3/shell/condabin/Conda.psm1 no change /home/x/anaconda3/shell/condabin/conda-hook.ps1 no change /home/x/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh no change /home/x/anaconda3/etc/profile.d/conda.csh no change /home/x/.bashrc No action taken.

After closing the shell, reopening it and trying to conda activate wp_env, I get the same error message again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NCAR/wrf_python_tutorial/issues/1#issuecomment-855978999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHTWFMS2W5ZEWTLI7WIKU23TRTJXNANCNFSM46GJHSFQ .