WXU_2.8 not defined in file libwx_gtk2u_core-2.8.so.0

When I import wx I get this error message.

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import wx
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
4, in <module>
    import _core_
ImportError: /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so:
symbol _ZN5wxApp10InitializeERiPPw, version WXU_2.8 not defined in file
libwx_gtk2u_core-2.8.so.0 with link time reference

I don't have a clue what this means, I've downloaded and installed several
things several times, wxWidgets, glib, wxPython, gtk, maybe others. All of
them from source and from synaptic(I'm using Ubuntu 8.04) except for gtk which
won't let me install it from source until I remove the version I installed from
the Ubuntu repositories which demands that I remove every program dependent on
glib if I do so from synaptic, even though I already have a more recent version
then the one I'm removing.

I also thought the u in WXU and gtk2u might suggest something to do with unicode
so I configured wxWidgets and wxPython with --enable-unicode.

All in all I've been at it for a while, it's late, and I have gotten absolutely
nowhere.

Hi,

When I import wx I get this error message.

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import wx
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
4, in <module>
    import _core_
ImportError: /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so:
symbol _ZN5wxApp10InitializeERiPPw, version WXU_2.8 not defined in file
libwx_gtk2u_core-2.8.so.0 with link time reference

I don't have a clue what this means, I've downloaded and installed several
things several times, wxWidgets, glib, wxPython, gtk, maybe others. All of
them from source and from synaptic(I'm using Ubuntu 8.04) except for gtk which
won't let me install it from source until I remove the version I installed from
the Ubuntu repositories which demands that I remove every program dependent on
glib if I do so from synaptic, even though I already have a more recent version
then the one I'm removing.

I also thought the u in WXU and gtk2u might suggest something to do with unicode
so I configured wxWidgets and wxPython with --enable-unicode.

All in all I've been at it for a while, it's late, and I have gotten absolutely
nowhere.

___________

I just followed the directions on the wiki and it worked for me: InstallingOnUbuntuOrDebian - wxPyWiki

I don't think the key is required any more though as I always get an error from the repositories that I add. The ones in the official Ubuntu repositories seem to work fine, so I just use Apt-get to install it. Unless you have a compelling reason to, you probably don't need to build it yourself.

Mike

jarlh@email.arizona.edu wrote:

When I import wx I get this error message.

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import wx
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
4, in <module>
    import _core_
ImportError: /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so:
symbol _ZN5wxApp10InitializeERiPPw, version WXU_2.8 not defined in file
libwx_gtk2u_core-2.8.so.0 with link time reference

I don't have a clue what this means,

It probably means that the wx libs being found at runtime are not the same ones that wxPython was built with.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi,
I have the similar problem. Whenever I import wx, the message error appear
like this:

import wx

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line
45, in <module>
    from wx._core import *
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 14822, in <module>
    from _gdi import *
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_gdi.py",
line 4, in <module>
    import _gdi_
ImportError:
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so: symbol
_ZTV14wxGraphicsPath, version WXU_2.8 not defined in file
libwx_gtk2u_core-2.8.so.0 with link time reference

I have installed the following:
python-wxgtk2.8
libwxbase2.8-0
libwxbase2.8-dev
libwxgtk2.8-0
libwxgtk2.8-dev
wx-common
wx2.8-i18n
wx2.8-headers

libgtk2.0-0:i386
libgtk2.0-common
libgtk2.0-0
libgtk2.0-bin
libgtk2.0-dev
libgtk2.0-cil
libgtk2-perl

libgtk-vnc-2.0-0
libgtk-3-0
libgtk-3-common
libgtk-3-bin
libgtk-3-dev
libgtkspell-3-0
libgtksourceview-3.0-0
libgtksourceview-3.0-common
libgtkmm-3.0-1
libgtkspell-3-0

I'm using Ubuntu 12.04 LTS (precise), which doesn't have support in
http://wiki.wxpython.org/InstallingOnUbuntuOrDebian
So all I have done is installing via "Synaptic Package Manager".

Please help. note: I'm a newbie for linux/unix, so please kindly describe
the solution in detail.

The other version seems to not be my choice. I have some detail below (u can
skip it XD).

--When I install wxpython in version 2.6, the "import wx" did work, but the
version was too old, I can't use that. (It give me a compile error for the
source code I'm working on, because my colleagues use the higher version
2.8) . I've tried to compile 2.8 myself from the sourcecode but it
complain about opengl, and I did tried to do my best, and finally gave up.
I've also tried to build 2.9 (not official version), I compiled successfully
without problem. but when I use this version to run the program which wrote
by my colleague. There is some kind of exception, some kind of error from
wx itself. So I think choose stick with version 2.8--

Best Regard

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/WXU-2-8-not-defined-in-file-libwx-gtk2u-core-2-8-so-0-tp2369776p5715593.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Hi,
I have the similar problem. Whenever I import wx, the message error appear
like this:

import wx

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line
45, in <module>
     from wx._core import *
   File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 14822, in <module>
     from _gdi import *
   File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_gdi.py",
line 4, in <module>
     import _gdi_
ImportError:
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so: symbol
_ZTV14wxGraphicsPath, version WXU_2.8 not defined in file
libwx_gtk2u_core-2.8.so.0 with link time reference

Usually that means that there is a mismatch between the wxWidgets library and wxPython. That should not happen with packages installed from the repository unless the package manager has done something weird, but double check that the python-wxgtk2.8 and libwx* packages all have the same version number.

You may also want to run ldd on one of the wxPython .so files to see which wx libraries it is loading dynamically. It's possible that it is finding the wrong ones, especially if you have tried building your own.

I'm using Ubuntu 12.04 LTS (precise), which doesn't have support in
InstallingOnUbuntuOrDebian - wxPyWiki
So all I have done is installing via "Synaptic Package Manager".

Using the 11.04 packages from there should still work okay on a 12.04 system, but it should not be needed.

···

On 1/7/13 10:59 PM, warherozer wrote:

--
Robin Dunn
Software Craftsman