[PyQt] Unable to create the C++ code error when building PyQt 4.7.4 bindings for QScintilla 2.4.4

Phil Thompson phil at riverbankcomputing.com
Wed Aug 25 09:42:42 BST 2010


On Tue, 24 Aug 2010 23:34:08 -0700 (PDT), Jiacun wu <cathaywjc at yahoo.com>
wrote:
> Hello,
>  
> After I successfully build and install QScintilla 2.4.4 on Windows XP,
I'm
> trying to build Python bindings with running the following command in
> Visual Studio 2005 Command Prompt:
> python configure.py
> in its Python directory.
>  
> The configure.py yields the following error:
> ----
> QScintilla 2.4.4 is being used.
> PyQt 4.7.4 is being used.
> Qt v4.5.3 free edition is being used.
> SIP 4.10.5 is being used.
> The QScintilla module will be installed in D:\Program
> Files\Python26\Lib\site-packages\PyQt4.
> The QScintilla API file will be installed in
D:\QT\4.5.3\qsci\api\python.
> The QScintilla .sip files will be installed in D:\Program
> Files\Python26\sip\PyQt4.
> The QScintilla module is being built with generated docstrings.
> Generating the C++ source for the Qsci module...
> sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e]
[-g]
> [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix]
[-t
> tag] [-w] [-x feature] [-z file] [file]
> Error: Unable to create the C++ code.
> ----
>  
> BTW, I use Python 2.6.5. And I use all the latest release of SIP, PyQt
and
> QScintilla.
>  
> What’s wrong with me?
>  
> Would you please help me to fix this problem or give me some idea?

It's probably the space in the name D:\Program Files

You might try the current SIP snapshot which has some fixes in this area -
but maybe not for this particular case.

Phil


More information about the PyQt mailing list