[PyQt] Building the QScintilla-1.73 PyQt4 bindings

Jan Ekholm jan.ekholm at smultron.net
Mon Nov 26 09:05:28 GMT 2007


Hi,

I wanted to try out Eric4 and as Ubuntu has no packages for it (which is weird 
as PyQt4 is packaged) and thus ended up compiling some stuff. I got 
QScintilla-1.73 and built the Qt4 version without any problems, then I ran 
into some issues with the PyQt4 bindings:

~/download/QScintilla-1.73-gpl-2.1/Python$ python configure.py
QScintilla 2.1 is being used.
PyQt 4.3 is being used.
Qt v4.3.2 free edition is being used.
SIP 4.7 is being used.
The QScintilla module will be installed in
/usr/lib/python2.5/site-packages/PyQt4.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
The QScintilla .sip files will be installed in /usr/share/sip/PyQt4.
Generating the C++ source for the Qsci module...
sip: /usr/share/sip/PyQt4/QtCore/qbytearray.sip:103: syntax error
Error: Unable to create the C++ code.

This is what is executed when the failure comes:

"/usr/bin/sip" -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_3_0 -g -a 
QScintilla2.api -I /usr/share/sip/PyQt4 -c . -b qsci.sbf sip/qscimod4.sip

The stuff on that failed line (103) is:

102
103 %PickleCode
104     sipRes = Py_BuildValue((char *)"(s#)", sipCpp->data(),sipCpp->size());
105 %End
106
107 public:
108     QByteArray();


Distro:
	Kubuntu Gutsy, i386

Python:
	Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)

g++:
	g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Qt4:
	4.3.2-0ubuntu3.1 (from Ubuntu packages)

PyQt4:
	Version: 4.3-2ubuntu7.1 (for Qt 4.3.2, from Ubuntu packages)

PyQt4 itself works just fine. What more information should I include?

Best regards,
    Jan Ekholm

-- 
Jan Ekholm
jan.ekholm at smultron.net


More information about the PyQt mailing list