[PyQt] Private sip modules conflict with public sip module

Scott Talbert swt at techie.net
Sun Aug 18 04:14:12 BST 2019


See the below example:

$ python3
Python 3.7.4 (default, Jul  9 2019, 16:32:37)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.sip
>>> import sip
>>> sip
<module 'PyQt5.sip' from 

Basically, if you import a private sip module and then import the public 
one, it doesn't work.  It seems to be due to this:



More information about the PyQt mailing list