Bug 1794147 - HP-setup crashes with Python3 ui5 module not found error
Summary: HP-setup crashes with Python3 ui5 module not found error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-22 18:56 UTC by Subhendu Ghosh
Modified: 2020-06-18 14:13 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-06-01 07:27:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Subhendu Ghosh 2020-01-22 18:56:30 UTC
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:

Comment 1 Zdenek Dohnal 2020-05-28 07:19:35 UTC
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.

Comment 2 Ben Cotton 2020-05-28 15:01:22 UTC
Same behavior on F32 when hplip-gui is not installed. This appears to be a regression from bug 1368737.

Comment 3 Zdenek Dohnal 2020-05-29 04:35:21 UTC
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.

Comment 4 Ben Cotton 2020-05-29 12:47:53 UTC
(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?

Comment 5 Subhendu Ghosh 2020-05-30 17:22:29 UTC
I upgraded to F32 - hp-setup from Fedora repo does not show the same issues

hplip-3.20.5-1.fc32.x86_64

Comment 6 Subhendu Ghosh 2020-05-30 17:24:01 UTC
One note - during the hp-setup run, it does atempt to pull in new drivers/ppd from hp directly after a prompt.

Comment 7 Zdenek Dohnal 2020-06-01 07:06:55 UTC
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.

Comment 8 Zdenek Dohnal 2020-06-01 07:27:49 UTC
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.

Comment 9 Fedora Update System 2020-06-05 07:48:03 UTC
FEDORA-2020-c77d623d5f has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c77d623d5f

Comment 10 Fedora Update System 2020-06-05 08:03:12 UTC
FEDORA-2020-bcc8cef31e has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-bcc8cef31e

Comment 11 Fedora Update System 2020-06-07 21:44:30 UTC
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.

Comment 12 Fedora Update System 2020-06-08 01:45:50 UTC
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.

Comment 13 Fedora Update System 2020-06-16 12:04:41 UTC
FEDORA-2020-3ec2da7668 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3ec2da7668

Comment 14 Fedora Update System 2020-06-16 12:18:32 UTC
FEDORA-2020-407a05acd2 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-407a05acd2

Comment 15 Fedora Update System 2020-06-18 13:40:48 UTC
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.

Comment 16 Fedora Update System 2020-06-18 14:13:07 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.