Re: RuntimeError: the sip module has already registered

Peter Kessen <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
Hello,

Did anyone have an idea on this?

________________________________
From: Peter Kessen
Sent: Wednesday, 2 October 2019 15:54
To: [email protected]
Subject: RuntimeError: the sip module has already registered

Hi All,

I’m trying to use pyqt5 for a user interface inside of an extension for Siemens NX 12. When I execute my code for the first time after the launch of nx there are no errors. But when I execute it for a second time I get the error message:
RuntimeError: the sip module has already registered a module called PyQt5.QtCore
The Traceback points to the line where the import of the PyQt5 modules are done.

Is there any way to unregister all modules for sip before importing PyQt5?

Kind regards

Peter Kessen

_______________________________________________
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.