[Bug 1180724] New: hplip: hp-doctor crashes if python3-qt4 is not installed
https://bugzilla.suse.com/show_bug.cgi?id=1180724 Bug ID: 1180724 Summary: hplip: hp-doctor crashes if python3-qt4 is not installed Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Printing Assignee: jsmeix@suse.com Reporter: martin.wilck@suse.com QA Contact: jsmeix@suse.com Found By: --- Blocker: --- Created attachment 844961 --> https://bugzilla.suse.com/attachment.cgi?id=844961&action=edit PATCH: fix crash in hp-doctor Traceback (most recent call last): File "/usr/bin/hp-doctor", line 297, in <module> num_errors, num_warns = dep.validate(DEPENDENCY_RUN_AND_COMPILE_TIME, False) File "/usr/share/hplip/check.py", line 368, in validate self.core.dependencies[dep]) File "/usr/share/hplip/check.py", line 210, in __update_deps_info installed_ver = self.core.version_func[deps_info[6]]() File "/usr/share/hplip/installer/dcheck.py", line 304, in get_pyQt4_version from PyQt4 import QtCore ImportError: cannot import name 'QtCore' -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jsmeix@suse.com |martin.wilck@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c1 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS --- Comment #1 from Martin Wilck <martin.wilck@suse.com> --- Note: on recent TW, the following change has been made in python3-sip: * Sat Oct 10 2020 Benjamin Greiner <code@bnavigator.de> - Only build the PyQt4 and PyQt5 modules for older distros With this change, the attached patch isn't necessary any more, because /usr/lib64/python3.x/site-packages/PyQt4/sip.so, and thus "import PyQt4" fails already (see patch description). -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c2 --- Comment #2 from Martin Wilck <martin.wilck@suse.com> --- I'll keep the patch anyway, because it does no harm. It makes no sense to push this upstream though, I think; the problem is SUSE-specific and dependent on the way we package python-qt. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c3 --- Comment #3 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1180724) was mentioned in https://build.opensuse.org/request/show/862275 Factory / hplip -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c5 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code@bnavigator.de Flags| |needinfo?(code@bnavigator.d | |e) --- Comment #5 from Martin Wilck <martin.wilck@suse.com> --- Benjamin, would you second comment 2? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c7 --- Comment #7 from Martin Wilck <martin.wilck@suse.com> --- Thanks for the hint. I wanted to stay as close to the original code as possible, therefore the patch looks clumsy. The hplip code is ugly basically everywhere, I'd rather not start trying improve it. Just fix the obvious glitches. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c9 --- Comment #9 from Martin Wilck <martin.wilck@suse.com> --- Sorry? What's wrong about that? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2021:0250-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1180724 CVE References: JIRA References: Sources used: SUSE Linux Enterprise Module for Desktop Applications 15-SP2 (src): hplip-3.19.12-3.3.1 SUSE Linux Enterprise Module for Basesystem 15-SP2 (src): hplip-3.19.12-3.3.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c15 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-RU-2021:0244-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 1180724 CVE References: JIRA References: Sources used: openSUSE Leap 15.2 (src): hplip-3.19.12-lp152.2.3.1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1180724 https://bugzilla.suse.com/show_bug.cgi?id=1180724#c16 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #16 from Martin Wilck <martin.wilck@suse.com> --- fixed per comment 11 ff. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com