[Kde-bindings] [Bug 162833] can't compile pykde, SIP error.

John Babiak johnb316 at gmail.com
Sun Jun 29 17:23:22 UTC 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162833         




------- Additional Comments From johnb316 gmail com  2008-06-29 19:23 -------
I just upgraded sip to the version 4.7.7 snapshot generated on 15 June 2008 (all other items in my tool chain listed in comment #2 are unchanged). I still get an error message when trying to compile PyKDE4.kdecore from kdebindings-4.0.5. However, the error is different. Terminal output from the build of PyKDE4.kdecore follows:

[ 54%] Generating sip/kdecore/sipkdecorepart0.cpp, sip/kdecore/sipkdecorepart1.cpp, sip/kdecore/sipkdecorepart2.cpp, sip/kdecore/sipkdecorepart3.cpp, sip/kdecore/sipkdecorepart4.cpp, sip/kdecore/sipkdecorepart5.cpp, sip/kdecore/sipkdecorepart6.cpp, sip/kdecore/sipkdecorepart7.cpp
-- Generating CPP code for module PyKDE4.kdecore
sip: /usr/share/sip/PyQt4/QtGui/qpolygon.sip:289: Incorrect number of arguments to Python slot
make[2]: *** [python/pykde4/sip/kdecore/sipkdecorepart0.cpp] Error 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kdecore.dir/all] Error 2
make: *** [all] Error 2

Here is the source code from /usr/share/sip/PyQt4/QtGui/qpolygon.sip around line 289 from the 20080615 snapshot of sip-4.7.7 (line 289 will have arrows pointing to it):

void __delitem__(SIP_PYSLICE slice, const QPolygon &list);
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
#else
int len, start, stop, step, slicelength, i;
#endif

len = sipCpp->count();

if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelen$
    sipIsErr = 1;
else
    for (i = 0; i < slicelength; ++i)
    {
        sipCpp->remove(start);
        start += step - 1;
    }
%End

--->QPolygon &operator[](SIP_PYSLICE slice);<---
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
#else
int len, start, stop, step, slicelength, i;
#endif

Hopefully this snippet of code from the piece of sip that caused the error message can help in tracking down why it occurred.



More information about the Kde-bindings mailing list