Bug 1530331 - hp-setup should inform about installing hplip-gui if GUI is used
Summary: hp-setup should inform about installing hplip-gui if GUI is used
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1528786
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-02 15:52 UTC by Zdenek Dohnal
Modified: 2018-10-10 13:55 UTC (History)
5 users (show)

Fixed In Version:
Clone Of: 1528786
Environment:
Last Closed: 2018-10-10 13:55:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Dohnal 2018-01-02 15:52:25 UTC
+++ This bug was initially created as a clone of Bug #1528786 +++

Description of problem:
After upgrade to Fedora 27 my the scanner no longer works in my HP multi-function printer. 


Version-Release number of selected component (if applicable):
hplip-3.17.11-1.fc27.x86_64


How reproducible:
Tried rebooting, still not found


Steps to Reproduce:
1. Run simple scan

Actual results:
No scanner found


Expected results:
Scanner works


Additional info:
Tried hp-setup to see if it would help:
$ hp-setup 

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

--- Additional comment from Zdenek Dohnal on 2018-01-02 08:47:27 EST ---

Hi Richard,

thank you for reporting this issue. How is your device connected? Which printer is it? Would you mind sharing outputs:

$ SANE_DEBUG_DLL scanimage -L 2> debug.out (and attach debug.out file)
$ sudo sane-find-scanner

Does printing work?

--- Additional comment from Richard Shaw on 2018-01-02 09:01:01 EST ---

Sorry for the noise, I think it was just bad timing. My computer took a power surge about a year ago and it took out a few ports including the on board ethernet and the USB port next to it. It looks like another USB port failed because when I plugged it in the front port everything started working again.

--- Additional comment from Zdenek Dohnal on 2018-01-02 10:15:19 EST ---

Just for clarification of second part of initial post (traceback part) - did you have hplip-gui subpackage installed?

--- Additional comment from Richard Shaw on 2018-01-02 10:17:20 EST ---

Yes, if you would like to keep this bug open for the module not found error that would probably be a good idea.

--- Additional comment from Zdenek Dohnal on 2018-01-02 10:23:25 EST ---

And would you mind telling me, if you had hplip-gui package installed when you issued command 'hp-setup'?

--- Additional comment from Richard Shaw on 2018-01-02 10:46:43 EST ---

I believe so but I can try running again when I get home from $DAYJOB.

Comment 1 Richard Shaw 2018-01-03 14:57:12 UTC
It doesn't error out when hplip-gui is installed. Perhaps it should be added as a "Recommends:"?

Comment 2 Zdenek Dohnal 2018-01-03 15:20:03 UTC
hp-setup works fine with -i option, which makes hp-setup start as CLI app. Hplip GUI missing was the point of that change - all apps in main package can run in CLI mode or run only in CLI, so user doesn't need to download all gui parts, unless user explicitly wants so. IMO adding hplip-gui Recommends: will make dnf to download this subpackage every time.
The issue there is only python traceback - it should tell user something like: "You want to run this app as GUI, but do you have hplip-gui installed?"

Comment 3 Zdenek Dohnal 2018-10-10 13:55:08 UTC
Works as it should now.


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