From 842c08055bba426d1bbd129fac786760b2d71b86 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Fri, 11 Oct 2024 18:36:20 -0400 Subject: [PATCH] Help users understand why 6.8.0 just destroys things xref: https://github.com/spyder-ide/qtpy/issues/494 --- qtpy/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qtpy/__init__.py b/qtpy/__init__.py index 5467fda5..4375f9ff 100644 --- a/qtpy/__init__.py +++ b/qtpy/__init__.py @@ -278,6 +278,11 @@ def __init__(self, *, missing_package=None, **superclass_kwargs): if API in PYSIDE6_API: try: from PySide6 import __version__ as PYSIDE_VERSION # analysis:ignore + if PYSIDE_VERSION == "6.8.0": + print( + "A known critical bug in PySide6 6.8.0 will cause your application to crash " + "see https://github.com/spyder-ide/qtpy/issues/494" + ) from PySide6.QtCore import __version__ as QT_VERSION # analysis:ignore QT5 = PYQT5 = False