Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2003, 06:45 PM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
Question How do I change python search path

Trying to get psyslsk to run. Got python, and the wxpythongtk installed, but python can't seem to find the wxmodules, ex:

[root@localhost pyslsk-1.2.4a]# python ./pyslsk
Can not find wxPython modules. Either wxPython is not
installed, or it's not in Python's module search path (it could be built
for a different version of python interpreter for example). The current
search path is
['/home/nick/progs/pyslsk-1.2.4a', '/usr/local/lib/', '/usr/local/li
b/python2.3', '/usr/local/lib/python2.3/plat-linux2', '/usr/local/lib/python2.3/
lib-tk', '/usr/local/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-
[root@localhost pyslsk-1.2.4a]#

I know I installed the wxPython files, but I don't know where they installed to, nor how to change the python search path. Any help?? thanks in advance.
Old 10-22-2003, 07:27 PM   #2
LQ Newbie
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
How did you install the wxPython bindings? By rpm?

As for once you know where the modules are located, you can stick something similar to the following example in $HOME/.bash_profile (or whatever the similar syntax is for your particular shell's startup scripts):

export PYTHONPATH=$PYTHONPATH:$HOME/lib/python:$HOME/lib/misc
If you are at all interested in python programming, you might want the actual explanation from the python docs. Read the description for 'path' in the sys module:

Last edited by smokybobo; 10-22-2003 at 07:30 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP search path jmanjohn61 Linux - Software 2 01-21-2009 12:47 PM
Python search and replace Accordion Programming 1 02-22-2005 07:54 PM
Python compilation error, "module search path"etc.. mindfestival Linux - Newbie 0 05-31-2004 02:52 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
Regex search in files with python smokybobo Programming 0 11-08-2003 06:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration