[PyQt] problem with sip

Phil Thompson phil at riverbankcomputing.co.uk
Sun Apr 1 00:31:11 BST 2007

On Saturday 31 March 2007 11:31 pm, Bart. wrote:
> Hi Everyone!
> My name is Bartek Zimon
> It's my begining with PyQt 3 befor only pyuic (it works great :).
> I want to add python scripting to Qt Application Kadu (kadu.net).
> 1. Is it possible to add python scripting to application using SIP ?
>    I want to have access to (almost) all the classes of this application.
>    The module will be (if possible) in shared library and loaded if user
> want.
> >From now I've got lots of problems with SIP:
> 2. According to http://www.riverbankcomputing.com/Docs/sip4/sipref.html
>   I'v created configure.py and kadu.sip (inside for tests definied only
> class About : QHbox ) python configure.py didn't work because .:
>   sip: Unable to find file "qt/qhbox.sip"
>   How to use sip to get sip files from /usr/share/sip ?

Use the -I command line flag. See...


> 3. I've copy directory qt from /usr/share/sip to this directory and
> now have errors like :
>   sip: qt/qhbox.sip:40: Upper bound is not a time version
>   sip: qt/qhbox.sip:40: Lower bound is not a time version
>   comandline : /usr/bin/sip -c . -b kadu.sbf kadu.sip
>   What's wrong? I think that sip dont know qt version.

So you need to tell it using the -t command line flag.

> 4. Why %Import qt/qtmod.sip gives Segmentation foult?
>    In sipref.html looks like it must work.

You need to supply a bit more information...


More information about the PyQt mailing list