[PyQt] sip syntax error

deepak mathur mathurdeepak13 at gmail.com
Tue Sep 19 17:52:17 BST 2017


Hello,

I've been trying to run "python configure.py" with following error:

sip:
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/sip/PyMyLabel.sip:1:
syntax error

sip command (from configure.py):
/usr/bin/sip -x VendorID -t WS_X11 -t Qt_5_6_0 -x Py_v3  -I
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/sip -I
/usr/share/sip/PyQt5 -I /usr/include/python2.6 -I
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/src -c
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/modules -b
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/modules/PyMyLabel.sbf -w
/job/rnd/dev/people/dmathur/work/sipTest/labelTest/sip/PyMyLabel.sip


PyMyLabel.sip:----
%Module(name=PyMyLabel, call_super_init=True, keyword_arguments="All")
%DefaultMetatype PyQt5.QtCore.pyqtWrapperType
%DefaultSupertype sip.simplewrapper
%Include MyLabel.sip


MyLabel.sip:----
%Module PyMyLabel 0

%Import QtGui/QtGuimod.sip
%Import QtWidgets/QtWidgetsmod.sip

%If (Qt_5_0_0 -)

class MyLabel : public QLabel {

%TypeHeaderCode
#include "mylabel.h"
%End

public:
    MyLabel(QWidget *parent /TransferThis/ = 0);

private:
    MyLabel(const MyLabel&);
};

%End


I'm not sure what's wrong here.. anyone with similar issue/solution..

many thanks,
D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170919/4d9172d0/attachment.html>


More information about the PyQt mailing list