I built and installed wx 2.8.4.2 and wxPython following the instructions online at
http://www.wxpython.org/BUILD.html
http://www.wxpython.org/INSTALL.html
I get an error when importing wx:
$ python
Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in ?
File “/home/schmitt/usr/local/lib/python2.4/site-packages/dbus/init.py”, line 45, in ?
File “/usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/_core.py”, line 4, in ?
ImportError: /home/schmitt/usr/local/lib/libwx_gtk2_core-2.8.so.0: undefined symbol: IceOpenConnection
Any ideas of what that error means? Here’s what libwx_gtk2_core-2.8.so.0 is linked to:
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00e05000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00eed000)
libc.so.6 => /lib/libc.so.6 (0x00f01000)
/lib/ld-linux.so.2 (0x00a9a000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00dae000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0109f000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x009c6000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x005aa000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00a18000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x005e7000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00a28000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00d91000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00a2b000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00dcb000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00a2f000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00a34000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00ab5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a5c000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00a6f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00a72000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00d5e000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00a78000)
Thanks!
-Pete
I had a really hard time building and installing wxPython in a RedHat machine couple of months ago. I got similar kind of errors. I think it is related to having incompatible versions of pango, gtk, atk and glib. So, you might have to update all of those even though it doesn’t complain about that while you are building it. You can easily have corrupted versions of these if you have tried to install/uninstall them couple of times(because of rpm -e not being able to remove the package or rpm putting the package in the rpm database even though it wasn’t installed successfully. Next time you try to install it something, it says oh it’s already there.)
Anyway, the way I end up solving my issue was to install an old enough version of wxpython so that I don’t have to touch anything at all. If you are trying to install it in a clean machine, I would suggest reinstall Linux with all the programming features( you can do that in RedHat, I don’t know about others) which will install glib2, atk, and pango, python. Now just find the version of gtk+, and wxPython that is compatible with the current versions of packages installed.
Goodluck man. I can totally understand what you must be going through. These are the times when I appreciate Windows.
-Ananda
···
On 9/25/07, Peter Schmitt pschmittml@gmail.com wrote:
I built and installed wx 2.8.4.2 and wxPython following the instructions online at
http://www.wxpython.org/BUILD.html
http://www.wxpython.org/INSTALL.html
I get an error when importing wx:
$ python
Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in ?
File “/home/schmitt/usr/local/lib/python2.4/site-packages/dbus/init.py”, line 45, in ?
File “/usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/_core.py”, line 4, in ?
ImportError: /home/schmitt/usr/local/lib/libwx_gtk2_core-2.8.so.0: undefined symbol: IceOpenConnection
Any ideas of what that error means? Here’s what libwx_gtk2_core-2.8.so.0 is linked to:
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00e05000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00eed000)
libc.so.6 => /lib/libc.so.6 (0x00f01000)
/lib/ld-linux.so.2 (0x00a9a000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00dae000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0109f000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x009c6000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x005aa000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00a18000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x005e7000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00a28000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00d91000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00a2b000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00dcb000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00a2f000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00a34000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00ab5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a5c000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00a6f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00a72000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00d5e000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00a78000)
Thanks!
-Pete
Well, downgrading to wxPython 2.6 seems to have fixed my problem.
-Pete
···
On 9/30/07, Ananda Regmi <aregmi@gmail.com > wrote:
I had a really hard time building and installing wxPython in a RedHat machine couple of months ago. I got similar kind of errors. I think it is related to having incompatible versions of pango, gtk, atk and glib. So, you might have to update all of those even though it doesn’t complain about that while you are building it. You can easily have corrupted versions of these if you have tried to install/uninstall them couple of times(because of rpm -e not being able to remove the package or rpm putting the package in the rpm database even though it wasn’t installed successfully. Next time you try to install it something, it says oh it’s already there.)
Anyway, the way I end up solving my issue was to install an old enough version of wxpython so that I don’t have to touch anything at all. If you are trying to install it in a clean machine, I would suggest reinstall Linux with all the programming features( you can do that in RedHat, I don’t know about others) which will install glib2, atk, and pango, python. Now just find the version of gtk+, and wxPython that is compatible with the current versions of packages installed.
Goodluck man. I can totally understand what you must be going through. These are the times when I appreciate Windows.
-Ananda
On 9/25/07, Peter Schmitt pschmittml@gmail.com wrote:
I built and installed wx 2.8.4.2 and wxPython following the instructions online at
[
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub](Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub)
http://www.wxpython.org/INSTALL.html
I get an error when importing wx:
$ python
Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
import wx
Traceback (most recent call last):
File “”, line 1, in ?
File “/home/schmitt/usr/local/lib/python2.4/site-packages/dbus/init.py”, line 45, in ?
File “/usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/wx/_core.py”, line 4, in ?
ImportError: /home/schmitt/usr/local/lib/libwx_gtk2_core-2.8.so.0: undefined symbol: IceOpenConnection
Any ideas of what that error means? Here’s what libwx_gtk2_core-2.8.so.0 is linked to:
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00e05000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00eed000)
libc.so.6 => /lib/libc.so.6 (0x00f01000)
/lib/ld-linux.so.2 (0x00a9a000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00dae000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0109f000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x009c6000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x005aa000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00a18000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x005e7000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00a28000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00d91000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00a2b000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00dcb000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00a2f000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00a34000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00ab5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a5c000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00a6f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00a72000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00d5e000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00a78000)
Thanks!
-Pete