LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-22-2003, 06:45 PM   #1
Giallo998
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/python23.zip', '/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-
packages']
[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
smokybobo
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):

Code:
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:

http://www.python.org/doc/2.3.2/lib/module-sys.html

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


Reply


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


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

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