473,503 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Path

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
user@user:~$ 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

Jul 27 '06 #1
2 2189
di********@gmail.com wrote:
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.
I'm not exactly sure how to change the version you are using (I'm not
yet a Linux user!), but I do know that it is highly recommend that you
leave any pre-existing versions of Python on your system, because your
OS or other apps might rely on it. If you are sure ActivePython
installed it, then it's okay to uninstall. It's probably still safe to
uninstall ActivePython, because it won't remove anything it didn't put
on your system in the first place. Just don't uninstall the other
version of Python by itself, because it might have come with Ubuntu
already and the system might need it.
Jul 27 '06 #2
In my .basrc file I commented the line of ActivePyton and after reboot
everything is fine now.

I can use Python 2.4.3 even on console and SPE both.

thanks
di********@gmail.com wrote:
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
user@user:~$ 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
Jul 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
33324
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
2
14341
by: Jorgen Grahn | last post by:
I couldn't think of a good solution, and it's hard to Google for... I write python command-line programs under Win2k, and I use the bash shell from Cygwin. I cannot use Cygwin's python package...
4
1969
by: Layne Meier | last post by:
I'm having a bit of a problem trying to install Python on a Solaris 10 system. I didn't have this kind of problem when trying to install it on Solaris 8. Has anyone else experienced this...
5
6725
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
34
3920
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.