Bug 714677 - raised exception when searching for new printers
Summary: raised exception when searching for new printers
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 14
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 714676
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-20 12:23 UTC by Petr Sklenar
Modified: 2011-06-20 13:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 714676
Environment:
Last Closed: 2011-06-20 13:38:39 UTC
Type: ---


Attachments (Terms of Use)

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.


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