Bug: QApplication() raise nothing on tty

Florian Bruhin me at the-compiler.org
Sat Jul 8 22:33:10 BST 2023


Hey

> I couldn't find a bug tracker. Am I right here?

Yes, except I don't think this is a bug.

> When I try to create an instance of QApplication (PyQt5) the whole 
> Python instances crashes. I tried this in a tty terminal.
> 
> But I would expect that QApplication.__init__() raise an Exception (e.g. 
> RunTimeException) if something is wrong.
> 
> Currently I have to workaround such situations via checking environment 
> variables which blow up the code. I would better try to use a 
> try...except solution.

What situations exactly? In general, there is no way for PyQt to know
whether Qt will call abort(), and there is no way for it to react to it
when it happens.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230708/b8ef6da2/attachment.sig>


More information about the PyQt mailing list