Bug: QApplication() raise nothing on tty
c.buhtz at posteo.jp
c.buhtz at posteo.jp
Sun Jul 9 11:06:03 BST 2023
Thanks for your reply.
On 2023-07-08 23:33 Florian Bruhin <me at the-compiler.org> wrote:
> I don't think this is a bug.
No doubt it is one. It crashes the whole Python instance.
> > 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.
I don't understand your comment about abort().
I described the "situation". Run PyQt script in a tty or on a system
with X/Wayland installed.
More information about the PyQt
mailing list