wxpython-3.0.0.0 and libnotify

If we build wxpython-3.0.0.0 against wxGTK built with --without-libnotify,
we're seeing this:

import wx

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 16924, in <module>
    from _misc import *
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_misc.py", line 4, in <module>
    import _misc_
ImportError: /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_misc_.so: symbol _ZTV21wxNotificationMessage, version WXU_3.0 not defined in file libwx_gtk2u_adv-3.0.so.0 with link time reference

I just wanted to check if this is expected. Is libnotify a hard requirement
for wxpython?

···

--
Ryan Hill psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E 7F92 ED38 BD49 957A 8463

Ryan Hill wrote:

If we build wxpython-3.0.0.0 against wxGTK built with --without-libnotify,
we're seeing this:

import wx

Traceback (most recent call last):
   File "<stdin>", line 1, in<module>
   File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py", line 45, in<module>
     from wx._core import *
   File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 16924, in<module>
     from _misc import *
   File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_misc.py", line 4, in<module>
     import _misc_
ImportError: /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_misc_.so: symbol _ZTV21wxNotificationMessage, version WXU_3.0 not defined in file libwx_gtk2u_adv-3.0.so.0 with link time reference

I just wanted to check if this is expected. Is libnotify a hard requirement
for wxpython?

It looks like it is not intended to be so. There is a wxUSE_LIBNOTIFY flag in wxWidgets that I presume is set in configure based on whether libnotify is to be used or not, but if that is disabled it should be using a generic implementation of wxNotificationMessage instead.

···

--
Robin Dunn
Software Craftsman

Is this a wxpython bug or should I report it to wxWidgets?

···

On Wed, 15 Jan 2014 18:48:41 -0800 Robin Dunn <robin@alldunn.com> wrote:

It looks like it is not intended to be so. There is a wxUSE_LIBNOTIFY
flag in wxWidgets that I presume is set in configure based on whether
libnotify is to be used or not, but if that is disabled it should be
using a generic implementation of wxNotificationMessage instead.

--
Ryan Hill psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E 7F92 ED38 BD49 957A 8463

It turned out wxpython just needed to be rebuilt after the flag was disabled in
wxGTK. Sorry about the noise.

···

On Wed, 15 Jan 2014 18:48:41 -0800 Robin Dunn <robin@alldunn.com> wrote:

> I just wanted to check if this is expected. Is libnotify a hard requirement
> for wxpython?

It looks like it is not intended to be so. There is a wxUSE_LIBNOTIFY
flag in wxWidgets that I presume is set in configure based on whether
libnotify is to be used or not, but if that is disabled it should be
using a generic implementation of wxNotificationMessage instead.

--
Ryan Hill psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E 7F92 ED38 BD49 957A 8463