-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Current Behavior
In csh, conda activate is setting the PATH environment variable AND setting a PATH shell variable to two different things.
Steps to Reproduce
Using csh and conda 4.7.5, you can see the difference here:
source miniconda/etc/profile.d/conda.csh conda activate ENVIRONMENT echo $PATH printenv PATH
If a user wishes to then set the PATH, they may run into issues. Example (after following the steps above with an environment that has python installed):
which python setenv PATH /tmp:${PATH} echo $PATH printenv PATH which python
Initially python is pulled from the environment. After changing PATH, python is being pulled from the miniconda installation. The workaround is to set path using the following method:
set path = ( /tmp $path )
Expected Behavior
Both the PATH environment variable and PATH shell variable should be set to the same thing. This would resolve the issue in both cases. This issue seems to have been recently introduced with the addition of the following into etc/profile.d/conda.csh:
set PATH="
dirname ${_CONDA_EXE}:$PATH"
I no longer get this issue if I update the line above to be:
setenv PATH "
dirname ${_CONDA_EXE}:$PATH"
Environment Information
`conda info`
active environment : None
shell level : 0
user config file : /home/mterrell/.condarc
populated config files :
conda version : 4.7.5
conda-build version : 3.18.5
python version : 3.7.3.final.0
virtual packages : __cuda=9.0
base environment : /proj/cxcds/users/mterrell/miniconda (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /proj/cxcds/users/mterrell/miniconda/pkgs
/home/mterrell/.conda/pkgs
envs directories : /proj/cxcds/users/mterrell/miniconda/envs
/home/mterrell/.conda/envs
platform : linux-64
user-agent : conda/4.7.5 requests/2.21.0 CPython/3.7.3 Linux/3.10.0-693.el7.x86_64 rhel/7.4 glibc/2.17
UID:GID : 11291:11291
netrc file : None
offline mode : False
`conda list --show-channel-urls`
# Name Version Build Channel
_libgcc_mutex 0.1 main defaults
backcall 0.1.0 py35_0 defaults
blas 1.0 mkl defaults
ca-certificates 2019.5.15 0 defaults
certifi 2018.8.24 py35_1 defaults
decorator 4.4.0 py_0 defaults
fftw 3.3.8 h7b6447c_3 defaults
glib 2.56.2 hd408876_0 defaults
gsl 2.4 h14c3975_4 defaults
icu 58.2 h9c2bf20_1 defaults
intel-openmp 2019.4 243 defaults
ipython 6.5.0 py35_0 defaults
ipython_genutils 0.2.0 py35hc9e07d0_0 defaults
jedi 0.12.1 py35_0 defaults
jpeg 9b h024ee3a_2 defaults
libedit 3.1.20181209 hc058e9b_0 defaults
libffi 3.2.1 hd88cf55_4 defaults
libgcc-ng 9.1.0 hdf63c60_0 defaults
libgfortran-ng 7.3.0 hdf63c60_0 defaults
libstdcxx-ng 9.1.0 hdf63c60_0 defaults
libxcb 1.13 h1bed415_1 defaults
mkl 2018.0.3 1 defaults
mkl_fft 1.0.6 py35h7dd41cf_0 defaults
mkl_random 1.0.1 py35h4414c95_1 defaults
ncurses 6.1 he6710b0_1 defaults
numpy 1.15.2 py35h1d66e8a_0 defaults
numpy-base 1.15.2 py35h81de0dd_0 defaults
openssl 1.0.2s h7b6447c_0 defaults
parso 0.5.0 py_0 defaults
pcre 8.43 he6710b0_0 defaults
pexpect 4.6.0 py35_0 defaults
pickleshare 0.7.4 py35hd57304d_0 defaults
pip 10.0.1 py35_0 defaults
pixlib 1.0.0 pypi_0 pypi
prompt_toolkit 1.0.15 py35hc09de7a_0 defaults
ptyprocess 0.6.0 py35_0 defaults
pygments 2.4.2 py_0 defaults
python 3.5.6 hc3d631a_0 defaults
readline 7.0 h7b6447c_5 defaults
setuptools 40.2.0 py35_0 defaults
simplegeneric 0.8.1 py35_2 defaults
six 1.11.0 py35_1 defaults
sqlite 3.28.0 h7b6447c_0 defaults
tk 8.6.8 hbc83047_0 defaults
traitlets 4.3.2 py35ha522a97_0 defaults
wcwidth 0.1.7 py35hcd08066_0 defaults
wheel 0.31.1 py35_0 defaults
xerces-c 3.2.2 h780794e_0 defaults
xz 5.2.4 h14c3975_4 defaults
zlib 1.2.11 h7b6447c_3 defaults