[wxPython-users] wxPython install

Robin Dunn robin at alldunn.com
Tue Aug 1 09:31:38 PDT 2006


tyson wrote:
> Hi,
> I just installed wxPython for python2.4.3 on FC5. I used the source rpm to
> build the rpms and then I installed those on the system. Everything
> seemed to install fine with no errors, but for some reason wxPython
> won't import into python. Here is my code and results:
> 
> from wxPython.wx import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named wxPython.wx
> 
> Also,
> import wx
> 
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named wx
> 
> I looked into /usr/lib/python2.4 and found the folder
> wx-2.6-gtk2-unicode which is where all of wxPython files are stored. I'm
> wondering if my environment variables are mixed up. If anyone has a
> suggestion I would really appreciate it.

Check that there is a /usr/lib/python2.4/wx.pth file that contains 
"wx-2.6-gtk2-unicode".  Also, make sure that the python you are running 
is /usr/bin/python2.4.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list