Bug 714677

Summary: raised exception when searching for new printers
Product: [Fedora] Fedora Reporter: Petr Sklenar <psklenar>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 714676 Environment:
Last Closed: 2011-06-20 13:38:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 714676    
Bug Blocks:    

Description Petr Sklenar 2011-06-20 12:23:24 UTC
there is same issue with system-config-printer-1.2.8-1.fc14.x86_64 

+++ This bug was initially created as a clone of Bug #714676 +++

Description of problem:
Search for network printer and there is an error in File "/usr/lib64/python2.6/subprocess.py", line 1220


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

# rpm -q cups system-config-printer
cups-1.4.2-39.el6.x86_64
system-config-printer-1.1.16-17.el6.x86_6

there is not samba running and no samba rpm:
 rpm -qa | grep samba
samba-winbind-clients-3.5.8-92.el6.x86_64
samba-common-3.5.8-92.el6.x86_64
samba-client-3.5.8-92.el6.x86_64

How reproducible:
deterministic

Steps to Reproduce:
1. s-c-printers, click new printer
2. network printer
3.     Find network printer
4.     right pane: empty field host and click Find
  
Actual results:
[root@ultraman-5 Desktop]# system-config-printer
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/probe_printer.py", line 237, in _do_find
    fn ()
File "/usr/share/system-config-printer/probe_printer.py", line 322, in _probe_hplip
    stderr=null)
File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
    errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1220, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..
params.c:OpenConfFile() - Unable to open configuration file "/root/.smb/smb.conf":
    No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/root/.smb/smb.conf.append":
    No such file or directory

Expected results:
There is traceback in output but s-c-printer survives

Additional info:
no traceback and its able to find some printers (if available)

Comment 1 Tim Waugh 2011-06-20 13:38:39 UTC
The traceback is non-fatal and only printed to stderr for information:

==>
Caught non-fatal exception.  Traceback:
       ~~~~~~~~~
File "/usr/share/system-config-printer/probe_printer.py", line 237, in _do_find
    fn ()
File "/usr/share/system-config-printer/probe_printer.py", line 322, in
_probe_hplip
    stderr=null)
File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__
    errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1220, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..
~~~~~~~~~~~~~~~~~
<==

It does not cause any bad symptom.