Bug 714676 - raised exception when searching for new printers
Summary: raised exception when searching for new printers
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: system-config-printer
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 714677
TreeView+ depends on / blocked
 
Reported: 2011-06-20 12:20 UTC by Petr Sklenar
Modified: 2011-06-20 13:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 714677 (view as bug list)
Environment:
Last Closed: 2011-06-20 13:39:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Sklenar 2011-06-20 12:20:20 UTC
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:39:55 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.


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