diff --git a/hplip-qt5-smart-install.py b/hplip-qt5-smart-install.py new file mode 100644 index 0000000..322edf1 --- /dev/null +++ b/hplip-qt5-smart-install.py @@ -0,0 +1,13 @@ +diff --git a/base/smart_install.py b/base/smart_install.py +index ec30aef..dd95e09 100755 +--- a/base/smart_install.py ++++ b/base/smart_install.py +@@ -226,7 +226,7 @@ def disable(mode, ui_toolkit='qt4', dialog=None, app=None, passwordObj = None): + dialog.init(printer_names, "", QUEUES_SMART_INSTALL_ENABLED) + else: # If QT object is not created, creating QT app + try: +- from ui4.queuesconf import QueuesDiagnose ++ from ui5.queuesconf import QueuesDiagnose + except ImportError: + log.error("Unable to load Qt4 support. Is it installed?") + else: # app = QApplication(sys.argv) # caller needs to inoke this, if already QApplication object is not created. diff --git a/hplip.spec b/hplip.spec index 17ab630..56f2650 100644 --- a/hplip.spec +++ b/hplip.spec @@ -195,6 +195,9 @@ Patch61: hplip-osname-mismatch.patch # 2015428 - python3.10 has Callable in collections.abc # reported as https://bugs.launchpad.net/hplip/+bug/1948801 Patch62: hplip-py310-collections-abc.patch +# 2015910 - [GUI] hp-setup crashes when loading smart_install module +# reported as https://bugs.launchpad.net/hplip/+bug/1957891 +Patch63: hplip-qt5-smart-install.py %if 0%{?fedora} || 0%{?rhel} <= 8 # mention hplip-gui if you want to have GUI @@ -513,6 +516,8 @@ done %patch61 -p1 -b .osname-mismatch # 2015428 - python3.10 has Callable in collections.abc %patch62 -p1 -b .abc +# 2015910 - [GUI] hp-setup crashes when loading smart_install module +%patch63 -p1 -b .qt5-smart %if 0%{?fedora} || 0%{?rhel} <= 8 # mention hplip-gui should be installed if you want GUI @@ -868,6 +873,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio %changelog +* Mon Jan 17 2022 Zdenek Dohnal - 3.21.12-1 +- 2015910 - [GUI] hp-setup crashes when loading smart_install module + * Fri Jan 14 2022 Zdenek Dohnal - 3.21.12-1 - 1959242 - hplip-3.21.12 is available