[PyQt] SIP: deriving a python class from a C++ ABC results in a TypeError exception

2011-07-02 Thread Demetrius Cassidy
I have a C++ class which is declared with pure virtual methods, but if I derive from this class in python and implement the pure virtual methods, I get an exception: TypeError: pyvoip.opal.OpalPCSSEndPoint cannot be instantiated or sub-classed My python class is declared as following: class

Re: [PyQt] SIP: deriving a python class from a C++ ABC results in a TypeError exception

2011-07-02 Thread Demetrius Cassidy
Actually I made a small mistake, OpalLocalEndPoint has a GetMediaFormats implementation, but the issue remains. class OpalLocalEndPoint : OpalEndPoint { virtual OpalMediaFormatList GetMediaFormats() const; }; On Sat, Jul 2, 2011 at 5:39 PM, Demetrius Cassidy dcassid...@gmail.comwrote: I have

Re: [PyQt] SIP: deriving a python class from a C++ ABC results in a TypeError exception

2011-07-02 Thread Phil Thompson
On Sat, 2 Jul 2011 17:39:14 +, Demetrius Cassidy dcassid...@gmail.com wrote: I have a C++ class which is declared with pure virtual methods, but if I derive from this class in python and implement the pure virtual methods, I get an exception: TypeError: pyvoip.opal.OpalPCSSEndPoint cannot

Re: [PyQt] SIP: deriving a python class from a C++ ABC results in a TypeError exception

2011-07-02 Thread Demetrius Cassidy
CCing mailing list On Sat, Jul 2, 2011 at 10:50 PM, Demetrius Cassidy dcassid...@gmail.comwrote: On Sat, Jul 2, 2011 at 10:45 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 2 Jul 2011 17:39:14 +, Demetrius Cassidy dcassid...@gmail.com wrote: I have a C++ class which is

Re: [PyQt] SIP: deriving a python class from a C++ ABC results in a TypeError exception

2011-07-02 Thread Demetrius Cassidy
I think I answered my own question after re-reading the annotation docs. Thanks. On Sat, Jul 2, 2011 at 10:52 PM, Demetrius Cassidy dcassid...@gmail.comwrote: CCing mailing list On Sat, Jul 2, 2011 at 10:50 PM, Demetrius Cassidy dcassid...@gmail.comwrote: On Sat, Jul 2, 2011 at 10:45 PM,