[PyQt] sip syntax error when building pyqt

Andrew Spiers aspiers at vpac.org
Wed Jan 2 07:46:53 GMT 2013


Hi,
I'm trying to build pyqt in a virtual environment. Sip is in the same 
environment. The qt4 libraries (qt-4 on fedora) are installed on my system.

Here is the error:
sip: 
/home/aspiers/src/retext/PyQt-x11-gpl-4.9.6/sip/QtCore/QtCoremod.sip:28: 
syntax error

Here is the relevant line of QtCoremod.sip:
%Module(name=PyQt4.QtCore, keyword_arguments="Optional", version=1)

sip-4.14.2/doc/html/directives.html says:

%Module

%Module(name = dotted-name
         [, all_raise_py_exception = [True | False]]
         [, default_VirtualErrorHandler = name]
         [, keyword_arguments = ["None" | "All" | "Optional"]]
         [, language = string]
         [, use_argument_names = [True | False]]
         [, version = integer])
{
     [%AutoPyName]
     [%Docstring]
};

,so it seems that the syntax in this line of QtCoremod is correct.

Does anyone know what might be wrong here?

Here is my commmand, and the output:

yes yes| python configure.py -q /usr/lib64/qt4/bin/qmake
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9.6 (licensed under the GNU General Public
License) for Python 3.3.0 on linux.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the dbus support module should be built...
DBus v1 does not seem to be installed.
Qt v4.8.4 free edition is being used.
SIP 4.14.2 is being used.
The Qt header files are in /usr/include.
The shared Qt libraries are in /usr/lib64.
The Qt binaries are in /usr/lib64/qt4/bin.
The Qt mkspecs directory is in /usr/lib64/qt4.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDBus, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql,
QtSvg, QtTest, QtXml, QtXmlPatterns, QtDesigner.
The PyQt Python package will be installed in
/home/aspiers/src/retext/lib/python3.3/site-packages.
PyQt is being built with deprecated Qt v4 features
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib64/qt4/plugins/designer.
The PyQt .sip files will be installed in
/home/aspiers/src/retext/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/home/aspiers/src/retext/bin.
Generating the C++ source for the QtCore module...
sip: 
/home/aspiers/src/retext/PyQt-x11-gpl-4.9.6/sip/QtCore/QtCoremod.sip:28: 
syntax error
Error: Unable to create the C++ code.



More information about the PyQt mailing list