[PyQt] Potential API break in PyQt4 snapshot
Davide Pesavento
pesa at gentoo.org
Mon May 30 20:25:20 BST 2016
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?
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
More information about the PyQt
mailing list