Description of problem: Importing the wx package fails Version-Release number of selected component (if applicable): wxPythonGTK2-2.4.2.4-7 gtk2-2.8.15-1 How reproducible: always Steps to Reproduce: 1. python -c 'import wx' Actual results: Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib64/python2.4/site-packages/wx/__init__.py", line 45, in ? from wxPython import wx File "/usr/lib64/python2.4/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib64/libwx_gtk2-2.4.so.0: undefined symbol: pango_x_get_context Expected results: (no output) Additional info: My guess it that since gtk-2.8's "pkg-config gtk+-2.0 --libs" now links to "-lpangocairo-1.0" instead of "-lpangox-1.0", wx will need to be built using "pkg-config gtk+-x11-2.0" instead.
Thanks. This will be fixed with the update for bug 163440, when wxPython 2.6.3.0 comes out any day now. I'm sorry for such a delay -- I expected that to be any day now last month. But it really looks like any day now at this point, for real.
It seems to be doing this in x86 as well. [root@localhost rufus-0.6.0]# python Python 2.4.2 (#1, Feb 12 2006, 03:59:46) [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] 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/__init__.py", line 45, in ? from wxPython import wx File "/usr/lib/python2.4/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib/libwx_gtk2-2.4.so.0: undefined symbol: pango_x_get_context Not sure if I should open up another bug or file under here.
*** Bug 186790 has been marked as a duplicate of this bug. ***
(This is broken across the board, not just on x86_64.) As noted above, this will be fixed for wxPython 2.6.x in, I hope, a matter of days. (Still waiting on wxPython 2.6.3.0; wxGTK 2.3.0 is out now and the wxPython author says he'll just need a day or two.) This is an issue with the 2.4 wxPython, and so should be reassigned to the "compat" package.
*** Bug 187593 has been marked as a duplicate of this bug. ***
*** Bug 188215 has been marked as a duplicate of this bug. ***
So, um, how is this *supposed* to work? 'Cause right now, if you install compat-wxPythonGTK2 and the new wxPython 2.6.x package side-by-side, ALL wxPython programs are broken -- you can't use the new package either. Case in point: $ /usr/share/doc/wxPython-2.6.3.2/demo/demo.py Traceback (most recent call last): File "/usr/share/doc/wxPython-2.6.3.2/demo/demo.py", line 3, in ? import Main File "/usr/share/doc/wxPython-2.6.3.2/demo/Main.py", line 32, in ? import wx # This module uses the new wx namespace File "/usr/lib/python2.4/site-packages/wx/__init__.py", line 45, in ? from wxPython import wx File "/usr/lib/python2.4/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib/libwx_gtk2-2.4.so.0: undefined symbol: pango_x_get_context But if I remove the compat-wxPythonGTK2, the new package works fine.
Also, I want to add for the record that wxPython 2.4.x is unmaintained upstream. There is a migration guide here: http://www.wxpython.org/migrationguide.php My inclination is to remove the compat package from FE devel, although it will still need to be maintained in FE4 & FE5. If this isn't reasonable for the FE6 timeframe, it should be revisited after that branches.
Any idea when this will be fixed? I need it soon, so if you don't have any plans to fix it, i will try to install it myself.
Since compat-wxPythonGTK2 and wxPython can't be installed side-by-side unlike the old pygtk and pygtk2, I see no other way then to just add a conflict rule in wxPython. And compat-wxPythonGTK2 obviously needs patching and rebuilding to fix the "pango_x_get_context" problem.
Joel -- I don't have any plans to work on it, but Tom "spot" Callaway, the maintainer of the compat-wx* packages, probably does.
*** Bug 188941 has been marked as a duplicate of this bug. ***
Alright. Sorry it took so long to tackle this. Fixed with compat-wxGTK*-2.4.2-21 and compat-wxPython-2.4.2.4-12, built for FC-4, FC-5, devel.