[PyQt] Odd sip error with sip wrap instance

Phil Thompson phil at riverbankcomputing.com
Thu Apr 2 17:54:38 BST 2015


On 02/04/2015 5:27 pm, Eric Yen wrote:
> Hi,
> 
> I have a C++ pointer that I want to wrap in to python.
> I got the address of the pointer from ctypes. Then I cal 
> sip.wrapinstance,
> and I get this really odd error:
> 
> TypeError: must be sip.wrappertype, not sip.wrappertype
> 
> I'm using the wxPython package, and I get the error when I try to run 
> the
> command
> sip.wrapinstance(a,wx.MemoryDC)
> 
> Any suggestions on what I could try?

I'd ask on the wxPython list (giving version numbers) as it uses a local 
copy of sip.

Phil


More information about the PyQt mailing list