My Python cannot find wxPython

Equis Uno ir4u4 at yahoo.com
Thu Jan 22 17:57:45 EST 2004


Hi,

I'm trying to run some Python software I downloaded off of sf.net.

It's called Boa.

It uses wxPython.

It appears my install of Python cannot see my install of wxPython.

My question:
How can I tell Python where wxPython lives?

Does Python have a concept like PATH or CLASSPATH?

Some more details about my Python-wxPython problem:

When I run Python on my Linux box I see this:


dhcpclient-220-7:/# python
Python 2.3.3 (#1, Jan  9 2004, 22:14:55) 
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

So, I'm running Python 2.3.3.

When I look in /usr/local/share I see wxPython:


dhcpclient-220-7:/# du /usr/local/share/wx/2.4
228	/usr/local/share/wx/2.4/afm
420	/usr/local/share/wx/2.4/gs_afm
652	/usr/local/share/wx/2.4
dhcpclient-220-7:/# 

When I run this "Boa" software I downloaded, I see this:

dhcpclient-220-7:/pt/TThier/Languages/python/boa-constructor-0.2.3# ./Boa.py
Starting Boa Constructor v0.2.3
importing wxPython
Traceback (most recent call last):
File "./Boa.py", line 179, in ?
from wxPython import wx
ImportError: No module named wxPython
dhcpclient-220-7:/pt/TThier/Languages/python/boa-constructor-0.2.3#



How do I get past this error:
ImportError: No module named wxPython

thanks,

-moi



More information about the Python-list mailing list