[wxPython-users] wxPython install

tyson twenger at vltool.com
Tue Aug 1 12:13:47 PDT 2006


That was it, it installed wxPython onto the system python instead of the 
newer version that I installed.  Thanks Robin, that was it!

Robin Dunn wrote:

> 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.
>


-- 
Tyson Wenger
Computer Programmer
V&L Tool,Inc.

2021 MacArthur Rd.
Waukesha, WI 53188
(262)547-1226 x178





More information about the wxpython-users mailing list