Description of problem: run hp-setup - immediate traceback Version-Release number of selected component (if applicable): hplip-3.19.12-2.fc31.x86_64 How reproducible: always Steps to Reproduce: 1. #hp-setup 2. 3. Actual results: HP Linux Imaging and Printing System (ver. 3.19.12) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-18 HP Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. Traceback (most recent call last): File "/usr/bin/hp-setup", line 313, in <module> ui = import_module(ui_package + ".setupdialog") File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ui5' Expected results: setup HP device Additional info:
Hi Subhendu, thank you for reporting the issue and I'm sorry for no answer for so long. I'm unable to reproduce your error - haven't you installed hplip from HP website in the past? I saw similar issues and it was caused by leftovers of HP website hplip.
Same behavior on F32 when hplip-gui is not installed. This appears to be a regression from bug 1368737.
Ben, I would like to ask you the same question as I asked Subhendu in comment #1. If I install hplip from Fedora repos and try to run 'hp-setup' without hplip-gui installed, I correctly get the error: error: Install the hplip-gui package for graphical support. warning: GUI Modules PyQt4 and PyQt5 are not installed error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode. Did you install hplip from HP web in the past? There can be remains after that causing the issue.
(In reply to Zdenek Dohnal from comment #3) > Did you install hplip from HP web in the past? There can be remains after > that causing the issue. I don't believe that I have (I have no specific recollection of it, and I can't think of any reason why I would have), but I've tested on another (F31) machine and get the expected error message. Do you have any way to detect if a non-repo hplip was installed?
I upgraded to F32 - hp-setup from Fedora repo does not show the same issues hplip-3.20.5-1.fc32.x86_64
One note - during the hp-setup run, it does atempt to pull in new drivers/ppd from hp directly after a prompt.
I found out the cause why it behaves differently for me... when I uninstall hplip-gui, dnf uninstalls unused dependencies in the transaction too - python3-qt5 among them too. But if there is a package which requires python3-qt5 aside of hplip-gui, python3-qt5 stays in OS and hp-setup tracebacks then. I'll fix it in next update.
Commit https://src.fedoraproject.org/rpms/hplip/c/d6b7a484d512f21c353468427f1141f7f237c41e?branch=master , I'll make a build and update for rawhide, F32 and F31 after fixing https://bugzilla.redhat.com/show_bug.cgi?id=1590014 . Closing as RAWHIDE for now.
FEDORA-2020-c77d623d5f has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c77d623d5f
FEDORA-2020-bcc8cef31e has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-bcc8cef31e
FEDORA-2020-bcc8cef31e has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-bcc8cef31e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-bcc8cef31e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-c77d623d5f has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c77d623d5f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c77d623d5f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-3ec2da7668 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3ec2da7668
FEDORA-2020-407a05acd2 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-407a05acd2
FEDORA-2020-407a05acd2 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-407a05acd2` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-407a05acd2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-3ec2da7668 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3ec2da7668` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3ec2da7668 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.