Removing Canopy Enthought leaves weird bash warning?

So, I removed Enthought Canopy

(I think completely, but I'm not sure if there is any residual information hovering over my neglect of the change).

After uninstalling, following the directions here: https://support.enthought.com/entries/23580651-Uninstalling-and-resetting-Canopy

I was a little frustrated that I couldn't find anything to remove for step 5, and since Canopy was never my default environment Python

, I didn't think too much about it.

But now, every time I open a terminal, I get this warning:

"-bash: /Users/MyName/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory"

      

What do I need to do to fix this? I am running Mac OSX, 10.8.5 (Mountain Lion)

. Any help would be much appreciated.

+3


source to share


3 answers


Until today I had the same problem and it really bothered me. I solved it like this:

First, I entered the following command into the terminal: open -a TextEdit .bash_profile

This opens yours .bash_profile

in TextEdit, which, at least for newbies, is easier than editing it in the terminal with vi or something. In this file, you should see several lines related to "Canopy" and "Enthought". In my case, this is what came up:



# Added by Canopy installer on 2014-02-11
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make bashprompt show that Canopy is active,       otherwise 1
VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/MyUserame/Library/Enthought/Canopy_64bit/User/bin/activate

      

I think this is the last line that is causing all the problems. Just delete those few lines (don't delete anything). In my case, these lines were in a separate block from the others in my .bash_profile, so they were easy to select. After that, just close the text file, restart your computer, and the annoying stuff about Enthought not being found should be gone. It worked for me, hope it did for you too!

+4


source


To find out where it is, run the interactive shell with the flag set xtracefd

and PS4

that includes $BASH_SOURCE

. For example:

PS4='+$BASH_SOURCE:$LINENO:' bash -i -x

      



Then view the output for the first link to the activate

script; it will include the original file and line number.

Most likely it will .bashrc

.

+2


source


For those who have this problem like me, I found the source in my .profile file. You will see the team at the top of .bash_profile

or .bashrc

which states: [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

. This calls another script called .profile

which needs to be cleaned up. To edit, .profile

use the command:

open -a TextEdit .profile

      

Then you will find a line there that says something like:

# Added by Canopy installer on 2013-04-10
source /Users/username/Library/Enthought/Canopy_64bit/User/bin/activate

      

Delete these lines and save, et voila!

0


source







All Articles