Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zsh "(eval):61: = not found" error after Anaconda update

I recently updated Anaconda (conda update --all) and I now see the following message in my zsh command line on opening:

(eval):61: = not found

Things still seem to work fine, I can call conda, etc., but the error seems strange. I'm sure it's some small thing that I missed on the update, or updating in my .zshrc file (I'm using oh-my-zsh).

like image 725
rocksteady Avatar asked Apr 03 '19 14:04

rocksteady


1 Answers

Thanks to the tip from @darthbith, I managed to sort this out. The trick is indeed replacing == with = in the conda.sh shell script.

The trick is to find the right one as there are multiple. For me, what worked was making that change in this one: ‎⁨~/anaconda3⁩/lib⁩/python3.6⁩/site-packages⁩/conda⁩/shell⁩/etc⁩/profile.d⁩/conda.sh

Near the bottom of this script, replace the == with = in these two if conditions:

 if [ "${_CE_CONDA+x}" == "condax" ]; then

 if [ "${PATH+x}" == "x" ]; then
like image 123
rocksteady Avatar answered Oct 09 '22 11:10

rocksteady