[PyQt] SIP fails with "syntax error" on simple class inheritance

Phil Thompson phil at riverbankcomputing.com
Mon Apr 30 11:36:27 BST 2012


On Mon, 30 Apr 2012 12:27:03 +0200, tuxor1337 at web.de wrote:
> Why does the attached sip-file always fail to be "sipped" with the 
> following error message:
> 
> sip: my_dialog.sip:15: syntax error
> 
> (line 15 is "class MyDialog : public QDialog {")
> 
> I tried to use a configure.py or directly call sip command line, but it 
> always fails with the same error message.
> 
> What am I doing wrong? Is there a tutorial out there that's a bit easier

> to understand than the official documentation 
> (http://www.riverbankcomputing.co.uk/static/Docs/sip4/using.html)? The 
> documentation is rather useless when using SIP for bigger or more 
> complex libraries.

What version of SIP are you using? Assuming it's older than v4.13.1 then
you need to remove the "public" (as it says in the documentation for your
version).

Phil


More information about the PyQt mailing list