installing wxPython on Red Hat Enterprise Linux 4

Brad Allen brad at allendev.com
Thu Apr 5 15:44:17 PDT 2007


Has anyone had any luck installing wxPython on RHEL4? There are no 
official RPMs for it on the Red Hat Network, and the RPM on the 
wxPython download site is not working out well.   Here is what 
happens:

Python 2.4.4 (#1, Apr  2 2007, 09:36:39)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>  import wx
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File 
"/usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/__init__.py", 
line 45, in ?
   File 
"/usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/_core.py", line 
4, in ?
ImportError: 
/usr/local/python244/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/_core_.so: 
cannot open shared object file: No such file or directory
>>>

Did we miss an important dependency? Like maybe wxWidgets? I am not 
sure why the RPM would not have reported that dependency.

We are aware that RHEL is using Python 2.3 but we pointed the install 
to a non-system Python under /usr/local/python244.

At the moment one of our team is building wxPython from source but it 
would have been nice to have a working RPM.

We are really only trying to install wxPython on this Linux server 
because wxImage has a capability that PIL doesn't have, which is to 
read TIFF images with group 4 compression. If anyone knows a better 
way than using wxPython, I could really use a pointer.

Thanks!




More information about the wxpython-users mailing list