[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] pyqt5 dbus module not importable when built with sip 5
From:       Antonio Rojas <arojas () archlinux ! org>
Date:       2019-12-14 8:25:21
Message-ID: 2058683.Bo4fZxi5HO () arl-portatil
[Download RAW message or body]

If pyqt5 is built with sip 5, the dbus module is not importable due to missing PyInit_pyqt5 symbol:

> import dbus.mainloop.pyqt5
ImportError: dynamic module does not define module export function (PyInit_pyqt5)

Looking at the diff between the sip4 and sip5-generated dbus.pro, with sip4 it adds

QMAKE_LFLAGS += -Wl,--version-script=pyqt5.exp

and pyqt5.exp contains

{ global: PyInit_pyqt5; local: *; };

With sip5, it adds

QMAKE_LFLAGS += -Wl,--version-script=dbus.exp

and dbus.exp contains

{ global: PyInit_dbus; local: *; };

which looks wrong.



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic