Bug 1397868 - [abrt] hplip: cups.py:869:cups_operation:ImportError: No module named 'ui4'
Summary: [abrt] hplip: cups.py:869:cups_operation:ImportError: No module named 'ui4'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:1da5fa6e41b84f74c0a3d4c6e30...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 13:41 UTC by kakoskin
Modified: 2017-12-12 10:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:24:53 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (692 bytes, text/plain)
2016-11-23 13:41 UTC, kakoskin
no flags Details
File: environ (1.57 KB, text/plain)
2016-11-23 13:41 UTC, kakoskin
no flags Details

Description kakoskin 2016-11-23 13:41:39 UTC
Description of problem:
I use HP LaserJet P1102. Apparently it is a known bug that it tries to install itself every time it is inserted. I was using HP device manager to remove one of the duplicates while printer was not plugged in.

Version-Release number of selected component:
hplip-3.16.10-1.fc25

Additional info:
reporter:       libreport-2.8.0
cmdline:        /usr/bin/python3 /usr/bin/hp-setup --gui --remove --device=hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q82J95HPR1a
executable:     /usr/bin/hp-setup
kernel:         4.8.8-300.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
cups.py:869:cups_operation:ImportError: No module named 'ui4'

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/setupdialog.py", line 1325, in NextButton_clicked
    status, status_str = cups.cups_operation(cups.delPrinter, GUI_MODE, 'qt4', self, printer)
  File "/usr/share/hplip/prnt/cups.py", line 869, in cups_operation
    from ui4 import ui_utils
ImportError: No module named 'ui4'

Local variables in innermost frame:
result: 1025
operation_func: <function delPrinter at 0x7f4bcc458048>
ui_toolkit: 'qt4'
status_str: 'client-error-forbidden'
mode: 1
ui_obj: <ui5.setupdialog.SetupDialog object at 0x7f4bd1783c18>
cups_op_args: ('HP_LaserJet_Professional_P1102',)
cnt: 1

Comment 1 kakoskin 2016-11-23 13:41:46 UTC
Created attachment 1223244 [details]
File: backtrace

Comment 2 kakoskin 2016-11-23 13:41:47 UTC
Created attachment 1223245 [details]
File: environ

Comment 3 Zdenek Dohnal 2016-11-24 10:14:30 UTC
Hi Kakoskin,

thank you for contacting us. It seems hp-setup is trying to use qt4 when you have qt5 installed (assuming you have already installed hplip-gui package, which is needed for running hplip commands with GUI). Would you mind trying this scratch build in that case? http://koji.fedoraproject.org/koji/taskinfo?taskID=16594227

Comment 4 kakoskin 2016-11-24 12:01:11 UTC
I tried the scratch build. I got a crash instead.

//bugzilla.redhat.com/show_bug.cgi?id=1398291 instead.

Comment 5 Zdenek Dohnal 2017-01-11 17:34:05 UTC
Hi again,

would you mind trying this build? https://koji.fedoraproject.org/koji/buildinfo?buildID=832830

Comment 6 kakoskin 2017-01-21 08:39:23 UTC
I apologise for delayed response. I tested vesrsion 3.16.11-5.fc25 and this seems to be fixed.

Comment 7 Orion Poplawski 2017-01-25 02:07:46 UTC
hplip-3.16.11-5.fc25.x86_64

# hp-setup

HP Linux Imaging and Printing System (ver. 3.16.11)
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'

I can file a new issue if that would be better, but this seems related.

Comment 8 Fedora End Of Life 2017-11-16 14:45:17 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2017-12-12 10:24:53 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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