Re: Error while running a custom C++ plugin in PyQt5

Phil Thompson <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
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    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.