Python Path

Discussion in 'Python' started by diffuser78@gmail.com, Jul 27, 2006.

  1. Guest

    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, 2006
    #1
    1. Advertising

  2. John Salerno Guest

    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.
    John Salerno, Jul 27, 2006
    #2
    1. Advertising

  3. Guest

    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


    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, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith-Earl
    Replies:
    1
    Views:
    1,952
    Peter O'Reilly
    May 3, 2004
  2. Replies:
    0
    Views:
    2,235
  3. Mupota Muchelemba
    Replies:
    1
    Views:
    898
    Tony Morris
    Feb 4, 2004
  4. Matt
    Replies:
    3
    Views:
    19,511
    Sudsy
    Jul 8, 2004
  5. James
    Replies:
    2
    Views:
    13,908
    Andrew Thompson
    Dec 7, 2004
Loading...

Share This Page