[Bug 1180724] New: hplip: hp-doctor crashes if python3-qt4 is not installed
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
Martin Wilck
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c1
Martin Wilck
- 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://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c2
--- Comment #2 from Martin Wilck
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c3
--- Comment #3 from OBSbugzilla Bot
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c5
Martin Wilck
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c7
--- Comment #7 from Martin Wilck
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c9
--- Comment #9 from Martin Wilck
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1180724
https://bugzilla.suse.com/show_bug.cgi?id=1180724#c16
Martin Wilck
participants (1)
-
bugzilla_noreply@suse.com