[wxPython-users] import wx error question ?

Christopher Barker Chris.Barker at noaa.gov
Thu Jul 27 11:26:48 PDT 2006


Daniel Johnson wrote:
> /opt/ActivePython-2.4/bin/python
> 
> 
> How could I fix it once and for all ?

So you've got two Python 2.4s You should get rid of one of them. I'd 
probably dump activestate, since SPE is using the other one, and it's 
working. Unless you have a real reason to use activestate's version.

Even if you don't actually get rid of the activestate version, you need 
to take it off your PATH.

see what your PATH looks like:

$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/home/c 
                 barker/bin

I suspect you've got: /opt/ActivePython-2.4/bin/ in there, and it's 
before /usr/lib.

It's been added to your path somewhere, probably ~/.bash_profile, but it 
could also be in .profile, .bashrc, or somewhere in /etc, if it's been 
set system-wide. Try this to figure it out:

$ grep "PATH=" .*

and

$ grep "PATH=" /etc/*

you could also grep for "ActivePython"

How did you install activestate python? you may be able to uninstall it 
that way.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list