fermi-lat / Fermitools-conda

Conda recipe files for the Fermi Sciencetools software analysis package: Fermitools
https://fermi.gsfc.nasa.gov/ssc/data/analysis/
BSD 3-Clause "New" or "Revised" License
34 stars 16 forks source link

conda not deactivating properly #142

Open paulray opened 1 year ago

paulray commented 1 year ago

There is some problem deactivating the fermi conda environment. After deactivating, I still have that python on my path. See:

% which python
/usr/bin/python

% conda activate fermi-2.2.0

(fermi-2.2.0) % which python
/Software/miniconda3/envs/fermi-2.2.0/bin/python

(fermi-2.2.0) % conda deactivate

% which python
/Software/miniconda3/envs/fermi-2.2.0/bin/python

But for my other conda environments, it works fine.

% conda activate hese

(hese) paulr@hesenode1:~ % which python
/Software/miniconda3/envs/hese/bin/python

(hese) paulr@hesenode1:~ % conda deactivate

paulr@hesenode1:~ % which python
/usr/bin/python

Is there something about the fermi tools that is making this not work?

donhorner commented 1 year ago

It looks like PATH environment variable is not getting reset after deactivation. I assume it's an issue with the Fermitools's activate/deactivation scripts. I've assigned it to @jasercion to look into. In the meantime, you should probably be able to source your .bashrc file (or whatever is appropriate for you shell) to reset the PATH variable.