Bug 283291

Summary: hp-toolbox fails without xsane installed
Product: [Fedora] Fedora Reporter: Kent Pirkle <kmp>
Component: hplipAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 1.7.4a-5.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-11 01:47:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 236808    

Description Kent Pirkle 2007-09-07 22:36:25 UTC
Description of problem:

hp-toolbox gui fails to start


Version-Release number of selected component (if applicable):

AttributeError: 'UserSettings' object has no attribute 'cmd_scan'

How reproducible:

Everytime


Steps to Reproduce:
1. /usr/bin/hp-toolbox
2.
3.
  
Actual results:

$ /usr/bin/hp-toolbox 

HP Linux Imaging and Printing System (ver. 1.7.4a)
HP Device Manager ver. 10.0

Copyright (c) 2001-7 Hewlett-Packard 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-toolbox", line 159, in <module>
    toolbox = DevMgr4(hpiod_sock, hpssd_sock, toolboxCleanup, __version__)
  File "/usr/share/hplip/ui/devmgr4.py", line 152, in __init__
    self.user_settings = utils.UserSettings()
  File "/usr/share/hplip/base/utils.py", line 541, in __init__
    self.load()
  File "/usr/share/hplip/base/utils.py", line 643, in load
    self.cmd_scan = user_cfg.commands.scan or self.cmd_scan
AttributeError: 'UserSettings' object has no attribute 'cmd_scan'


Expected results:

GUI should start

Additional info:

Comment 1 Tim Waugh 2007-09-10 09:07:22 UTC
I think this is because there are no scanning tools installed.  If you run 'yum
install xsane' to install one, does hp-toolbox start correctly?

Comment 2 Kent Pirkle 2007-09-10 10:59:25 UTC
Yep, that was it, I installed xsane and the hp-toolbox gui came up. Thanks!

Comment 3 Tim Waugh 2007-09-10 11:15:31 UTC
Great.  I found a fix that went into HPLIP 2.7.7 that's relevant to this, and
I've backported it to the F-7 package.  If I do another HPLIP update for F-7,
this will get in.

Comment 4 Fedora Update System 2007-10-11 01:47:17 UTC
hplip-1.7.4a-5.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.