[PyQt] problem using SIP on Windows Vista 64 bit
phil at riverbankcomputing.co.uk
Tue Jan 8 09:13:24 GMT 2008
On Monday 07 January 2008, Quoc Tran wrote:
> I am using PyQt on Vista 64 bit. I managed to successfully compile
> Python2.5, Qt4.3.3, SIP4.7.3 and PyQt4.3.3 using MSVC2005. Everything works
> great so far and now I'm trying to use SIP to create PyQt extensions and am
> running into problems.
> I can successfully use SIP to create a non Qt C++ extension. I was able to
> get the "word" example in the SIP docs to work after creating a word.lib.
> I'm having trouble using SIP to generate a Qt extension. I tried the
> "hello" example in the SIP docs and ran into several problems which I tried
> to hack around. Here's what I did:
> 1) >python configure.py
> Traceback (most recent call last):
> File "configure.py", line 15, in <module>
> qt_sip_flags = config.pyqt_qt_sip_flags
> File "C:\Python25\Lib\site-packages\sipconfig.py", line 183, in
> __getattr__ raise AttributeError, "\"%s\" is not a valid configuration
> value or user option" % name AttributeError: "pyqt_qt_sip_flags" is not a
> valid configuration value or user option
> -I looked at C:\Python25\Lib\site-packages\PyQt4\pyqtconfig.py and
> there is no "pyqt_qt_sip_flags" defined but there is "pyqt_sip_flags" so I
> replaced it.
The example is based on PyQt3, not PyQt4. Looking at the QScintilla2 PyQt4
bindings might be better.
More information about the PyQt