[PyQt] SIP Wrapping of C++ Qt code for PyQt

Brandon King kingb at caltech.edu
Wed Apr 11 01:58:55 BST 2007


Phil Thompson wrote:
> On Wednesday 11 April 2007 1:05 am, Brandon King wrote:
>   
>> Hello,
>>     I am trying to evaluate SIP for use with wrapping a C++ Qt
>> application for use within Python with PyQt. I have a very simple Qt
>> Widget and want to wrap it, but without much success... When I run
>> configure.py (see below), and then run 'make', everything compiles and I
>> get a QtGui.so in the end. At first I got this error message:
>>
>> "<type 'exceptions.ImportError'>: libquit_button.so.1: cannot open
>> shared object file: No such file or directory"
>>
>> Then when I added libquit_button.so.1 to the directory, I now get this
>> error:
>>
>> "<type 'exceptions.SystemError'>: dynamic module not initialized properly'.
>>
>> Any idea what I am doing wrong? Is there any documentation showing how
>> to wrap more than one Qt Widget for use with PyQt? Are there any other
>> examples besides the SIP manual? Any other suggestions on getting
>> started with SIP other than reading PyQt4 and PyKDE code?
>>     
>
> Are you sure you want to create a new non-portable QtGui module? Or do you 
> want to create a new module that itself imports the regular QtGui module?
>
> If the latter, use %Import instead of %Include.
>
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>   
Ah, I intended to import not include. Thank you. I will see if that 
fixes my problem. Thank you for your quick response.

-Brandon King



More information about the PyQt mailing list