Bug 185777 (wxBroken) - Importing wx fails with compat-wxPythonGTK2
Summary: Importing wx fails with compat-wxPythonGTK2
Keywords:
Status: CLOSED RAWHIDE
Alias: wxBroken
Product: Fedora
Classification: Fedora
Component: compat-wxPythonGTK2
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 186790 187593 188215 188941 (view as bug list)
Depends On:
Blocks: FE6Target
TreeView+ depends on / blocked
 
Reported: 2006-03-17 21:28 UTC by Scott Tsai
Modified: 2007-11-30 22:11 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-09-11 23:20:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Scott Tsai 2006-03-17 21:28:07 UTC
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.

Comment 1 Matthew Miller 2006-03-17 21:32:33 UTC
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.

Comment 2 Marc Wiriadisastra 2006-03-23 08:45:51 UTC
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.

Comment 3 Matthew Miller 2006-03-26 15:31:07 UTC
*** Bug 186790 has been marked as a duplicate of this bug. ***

Comment 4 Matthew Miller 2006-03-26 15:39:24 UTC
(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.

Comment 5 Matthew Miller 2006-04-01 16:07:47 UTC
*** Bug 187593 has been marked as a duplicate of this bug. ***

Comment 6 Matthew Miller 2006-04-22 22:17:54 UTC
*** Bug 188215 has been marked as a duplicate of this bug. ***

Comment 7 Matthew Miller 2006-04-22 22:22:32 UTC
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.

Comment 8 Matthew Miller 2006-04-22 22:27:34 UTC
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.

Comment 9 Joel Schaerer 2006-04-22 23:19:41 UTC
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.

Comment 10 Scott Tsai 2006-04-23 01:24:22 UTC
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.

Comment 11 Matthew Miller 2006-04-23 01:40:35 UTC
Joel -- I don't have any plans to work on it, but Tom "spot" Callaway, the
maintainer of the compat-wx* packages, probably does.

Comment 12 Tom "spot" Callaway 2006-09-11 22:08:36 UTC
*** Bug 188941 has been marked as a duplicate of this bug. ***

Comment 13 Tom "spot" Callaway 2006-09-11 23:20:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.