pango error while importing wx

Hi all,

I've downloaded the source rpm from www.wxpython.org and generated the
binaries for my laptop, an AMD64 Suse Linux 10 box .

After that I've installed those binaries, but when I try to import the wx
package I see the following errors:

···

----------------------------------------------------------------------------
Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] 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/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/
__init__.py", line 42, in ?
    from wx._core import *
  File "/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
line 4, in ?
    import _core_
ImportError: /usr/lib/wxPython-2.6.1.0-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:
undefined symbol: pango_x_get_context

----------------------------------------------------------------------------

I wonder if there is something that needs to be charged in the SPEC file or if
it could be sufficient to define some environment vars to make it work

Suse Linux in fact has a strange directory structure that places KDE and
gnome/gtk under /opt.

Thanks
Massimo

-----------------------------------
Giuseppe Massimo Bertani

ICQ: 325228854
AOL: massimoBertani
-----------------------------------

___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it

This pango_x_get_context was marked has deprecated on older pango
version. The new pango version it was been removed.
This problem is already corrected on CVS.
You have to wait for wxPython 2.6.2 or checkout from CVS with the
WX_2_6_BRANCH tag and try to compile it.

Ricardo

···

On Tue, 2005-11-22 at 09:02 +0100, giuseppe massimo bertani wrote:

Hi all,

I've downloaded the source rpm from www.wxpython.org and generated the
binaries for my laptop, an AMD64 Suse Linux 10 box .

After that I've installed those binaries, but when I try to import the wx
package I see the following errors:

----------------------------------------------------------------------------
Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] 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/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/
__init__.py", line 42, in ?
    from wx._core import *
  File "/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
line 4, in ?
    import _core_
ImportError: /usr/lib/wxPython-2.6.1.0-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:
undefined symbol: pango_x_get_context

Alle 22:26, mercoledì 23 novembre 2005, Ricardo Pedroso ha scritto:

···

On Tue, 2005-11-22 at 09:02 +0100, giuseppe massimo bertani wrote:
> Hi all,
>
> I've downloaded the source rpm from www.wxpython.org and generated the
> binaries for my laptop, an AMD64 Suse Linux 10 box .
>
> After that I've installed those binaries, but when I try to import the wx
> package I see the following errors:
>
> -------------------------------------------------------------------------
>--- Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
> [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] 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/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/
> __init__.py", line 42, in ?
> from wx._core import *
> File
> "/usr/lib64/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
> line 4, in ?
> import _core_
> ImportError:
> /usr/lib/wxPython-2.6.1.0-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:
> undefined symbol: pango_x_get_context

This pango_x_get_context was marked has deprecated on older pango
version. The new pango version it was been removed.
This problem is already corrected on CVS.
You have to wait for wxPython 2.6.2 or checkout from CVS with the
WX_2_6_BRANCH tag and try to compile it.

Ricardo

It works now. Thank you Ricardo.

-----------------------------------
Giuseppe Massimo Bertani

ICQ: 325228854
AOL: massimoBertani
-----------------------------------

___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it