[PyQt] Potential API break in PyQt4 snapshot

Phil Thompson phil at riverbankcomputing.com
Mon May 30 22:28:57 BST 2016


On 30 May 2016, at 8:25 pm, Davide Pesavento <pesa at gentoo.org> wrote:
> 
> A Gentoo Linux user has encountered a compilation failure while
> building KDE4's kate editor (version 4.14.3) against the latest PyQt4
> snapshot (version 4.12.dev1605051544).
> 
> Is this an unintentional API change in PyQt4, or is kate using
> undocumented/private APIs? Or something else?

Probably something else - possibly trying to compile against Qt5 when configured for Qt4.

Phil

> The errors look like these:
> 
> /usr/share/sip/PyQt4/QtCore/qobject.sip: In function ‘PyObject*
> meth_Kate_PluginManager_connectNotify(PyObject*, PyObject*,
> PyObject*)’:
> /usr/share/sip/PyQt4/QtCore/qobject.sip:769:53: error: no matching
> function for call to
> ‘sipKate_PluginManager::sipProtectVirt_connectNotify(const char*&)’
>             sipCpp->sipProtectVirt_connectNotify(sig);
>                                                     ^
> /usr/share/sip/PyQt4/QtCore/qobject.sip:769:53: note: candidate is:
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1015:6:
> note: void sipKate_PluginManager::sipProtectVirt_connectNotify(bool,
> const char*)
> void sipKate_PluginManager::sipProtectVirt_connectNotify(bool
> sipSelfWasArg,const char*a0)
>      ^
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1015:6:
> note:   candidate expects 2 arguments, 1 provided
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1240:10:
> warning: unused variable ‘sipSelfWasArg’ [-Wunused-variable]
>     bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper
> *)sipSelf));
>          ^
> /usr/share/sip/PyQt4/QtCore/qobject.sip: In function ‘PyObject*
> meth_Kate_PluginManager_disconnectNotify(PyObject*, PyObject*,
> PyObject*)’:
> /usr/share/sip/PyQt4/QtCore/qobject.sip:802:56: error: no matching
> function for call to
> ‘sipKate_PluginManager::sipProtectVirt_disconnectNotify(const char*&)’
>             sipCpp->sipProtectVirt_disconnectNotify(sig);
>                                                        ^
> /usr/share/sip/PyQt4/QtCore/qobject.sip:802:56: note: candidate is:
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1020:6:
> note: void sipKate_PluginManager::sipProtectVirt_disconnectNotify(bool,
> const char*)
> void sipKate_PluginManager::sipProtectVirt_disconnectNotify(bool
> sipSelfWasArg,const char*a0)
>      ^
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1020:6:
> note:   candidate expects 2 arguments, 1 provided
> /var/tmp/portage/kde-apps/kate-4.14.3/work/kate-4.14.3_build/addons/kate/pate/sip/./kate/sipkatepart0.cpp:1301:10:
> warning: unused variable ‘sipSelfWasArg’ [-Wunused-variable]
>     bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper
> *)sipSelf));
>          ^
> 
> Thanks,
> Davide
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list