[PyQt] [SIP5] : An example of SIP5 with QT5.x and PyQt5.y

Phil Thompson phil at riverbankcomputing.com
Tue Apr 14 18:39:27 BST 2020


On 14/04/2020 17:53, Robert MARUT wrote:
> Thanks for your help Phil. I have to configure all the Qt headers 
> directory
> in the toml "include-dirs" key.

You shouldn't need to do that if 'qmake -query' is returning the correct 
values.

> I can build now my example with sip5 but trying to import the library 
> into
> Python. I have this error message : " RuntimeError: the PyQt5.QtCore 
> module
> failed to register with the sip module"

At a guess I'd say PyQt5 is importing a different sip module to your own 
module.

Phil


More information about the PyQt mailing list