I have two python 2.4s on my Ubuntu Linux box. One  is Python 2.4.2 and
other is Python 2.4.3. I use SPE as an IDE for coding. I have written a
small app in wxPython. If I run it from SPE it just works fine, but if
I run it from console it gives me import wx eror.

Following is the log which you might find helpful to answer my post.


1) ***When I just type python on console I get following
[EMAIL PROTECTED]:~$ python
ActivePython 2.4.2 Build 10 (ActiveState Corp.) based on
Python 2.4.2 (#1, Jan 17 2006, 15:39:23)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

2) ***AND SPE is using the following version of Python
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2


3) ***When I type sys.path on console I get following
>>> sys.path
['', '/opt/ActivePython-2.4/lib/python24.zip', '/opt/ActivePython-
2.4/lib/python 2.4', '/opt/ActivePython-2.4/lib/python2.4/plat-linux2',
'/opt/ActivePython-2.4/ lib/python2.4/lib-tk',
'/opt/ActivePython-2.4/lib/python2.4/lib-dynload', '/opt/
ActivePython-2.4/lib/python2.4/site-packages']

4) ***When I type sys.path on SPE I get following
>> sys.path
['/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode',
'/usr/share/spe', '/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload',
'/usr/local/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/HTMLgen',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages/cairo',
'/usr/lib/python2.4/site-packages/gst- 0.10',
'/usr/lib/python2.4/site-packages/gtk-2.0',
'/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode',
'/usr/lib/site-python', '/usr/lib/python2.4/site-packages/_spe',
'/usr/lib/python2.4/site-packages/_spe/plugins',
u'/home/darshan/Desktop/Project']


5) *** on which python I get the following
which python
/opt/ActivePython-2.4/bin/python


I want to get rid of ActivePython which I happend to install because I
was trying to Test the IDE by ActiveState and I think this version of
Python was installed by it.

I am happy using Python 2.4.3 but there is not way I am being able to
use it on console. 


Every help is appreciated.

Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to