[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Error while running a custom C++ plugin in PyQt5
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2019-05-29 21:01:59
Message-ID: 4df37b6a2007118b75b5a2d68214b048 () riverbankcomputing ! com
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic