Description of problem: Hello! I just installed hplip to get the hp-setup utility. When I run hp-setup, it complains about missing dependencies and exits with code 1. Version-Release number of selected component (if applicable): hplip-3.16.7-1.fc24.x86_64 How reproducible: Every time Steps to Reproduce: 1. $ dnf install hplip 2. $ hp-setup Actual results: [rbarlow@ohm ~]$ hp-setup HP Linux Imaging and Printing System (ver. 3.16.7) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-15 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. 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. [rbarlow@ohm ~]$ echo $? 1 Expected results: The utility should have all the dependencies it needs to run and run successfully.
I just noticed that I do in fact have the python-qt4 and python-qt5 packages installed, so something is wrong with hp-setup finding those packages. [rbarlow@ohm ~]$ rpm -q python-qt5 python-qt5-5.6-4.fc24.x86_64 [rbarlow@ohm ~]$ rpm -q PyQt4 PyQt4-4.11.4-14.fc24.x86_64
It later occurred to me to check the hp-setup script, and I noticed that it has #!/usr/bin/python3 at the top (nice!). And I didn't have python3-qt5 installed, so that was the problem. Please add python3-qt5 as a dependency of hp-setup to resolve this problem. However, there still seem to be missing dependencies: [rbarlow@ohm ~]$ hp-setup HP Linux Imaging and Printing System (ver. 3.16.7) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-15 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.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked ImportError: No module named 'ui5'
It seems that nothing in Fedora provides the ui5 Python package: $ dnf provides /usr/lib/python3.5/site-packages/ui5/__init__.py Last metadata expiration check: 2 days, 23:10:44 ago on Wed Aug 17 16:27:10 2016. Error: No Matches found
Hello Randy, thank you for contacting us. I think problem lies in usage 'hp-setup' without hplip-gui package installed (it is not installed by default, because package isn't mandatory for running hp-setup - you can use CLI interface by 'hp-setup -i'). Do you have this package installed? If not, would you mind installing it and tell me if it works?
Hello Zdenek! I did not have that gui installed, and after installing it I was able to use the hp-setup utility. Thanks for the tip! Perhaps there is a way to help users to avoid this confusion in the future. Perhaps hp-setup could be patched to suggest that users install the gui package when it is not found instead of the tracebacks about ui5 and python3-qt5?
Yeah, we have similar patch in f25, I will build it for f24.
hplip-3.16.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b41164b985
Thanks so much Zdenek, I'll test it out for you!
hplip-3.16.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b41164b985
hplip-3.16.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
Issue re-occured on Fedora 28 - without any visible hint to install hplip-gui. $ hp-setup HP Linux Imaging and Printing System (ver. 3.18.6) Printer/Fax Setup Utility ver. 9.0 Copyright (c) 2001-15 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.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'ui5'