[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] problem using SIP on Windows Vista 64 bit
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2008-01-08 9:13:24
Message-ID: 200801080913.24722.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Monday 07 January 2008, Quoc Tran wrote:
> Hi,
>
> 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.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic