[PyQt] Error while running a custom C++ plugin in PyQt5

Phil Thompson phil at riverbankcomputing.com
Wed May 29 22:01:59 BST 2019


On 29/05/2019 11:21, Deepak Hosamane wrote:
> Hello,
> 
> I am currently trying to create a custom plugin using C++ ( MSVC 2015
> , x64) , Python (3.5.4 , x64) , Qt (5.12.3, msvc2015_64 ) & PyQt
> (Installed on my machine using pip.exe )
> The custom widget builds fine, the .dll and .pyd files are created
> properly without any errors.
> However, when I use this custom widget and try to import it in python,
> it gives me an error: "ValueError: PyCapsule_GetPointer called with
> incorrect name".
> PyQt applications work properly in python though, only custom widgets
> give me this problem.
> 
> I never faced any such issue when I was creating c++ widgets while
> using older version of PyQt ( Python 3.4 , Qt 5.4.0 )
> Do I have to write something extra or different in the configure.py
> files while building custom widgets?
> Any help would be welcome!!!

My guess would be something to do with the name of the sip module (now 
PyQt5.sip, was sip).

Phil


More information about the PyQt mailing list