Bug 689336

Summary: [abrt] system-config-printer-1.3.2-1.fc15: newprinter.py:1289:setNPButtons:AttributeError: 'NewPrinterGUI' object has no attribute 'printers'
Product: [Fedora] Fedora Reporter: Naresh V. <nareshov>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:04f5c06f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-21 08:24:55 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:
Attachments:
Description Flags
File: backtrace none

Description Naresh V. 2011-03-21 06:55:12 UTC
abrt version: 1.1.17
architecture: x86_64
cmdline: /usr/bin/python /usr/share/system-config-printer/system-config-printer.py
component: system-config-printer
executable: /usr/share/system-config-printer/system-config-printer.py
kernel: 2.6.38-1.fc15.x86_64
package: system-config-printer-1.3.2-1.fc15
reason: newprinter.py:1289:setNPButtons:AttributeError: 'NewPrinterGUI' object has no attribute 'printers'
release: Fedora release 15 (Lovelock)
time: 1300690444
uid: 500

backtrace
-----
newprinter.py:1289:setNPButtons:AttributeError: 'NewPrinterGUI' object has no attribute 'printers'

Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 2739, in on_entNPTNetworkHostname_changed
    self.setNPButtons ()
  File "/usr/share/system-config-printer/newprinter.py", line 1289, in setNPButtons
    checkNPName(self.printers, self.entNPName.get_text()))
AttributeError: 'NewPrinterGUI' object has no attribute 'printers'

Local variables in innermost frame:
nr: 0
self: <NewPrinterGUI object at 0x16473c0 (newprinter+NewPrinterGUI at 0x1721320)>

How to reproduce
-----
1. try to add a printer
2. after clicking through and reaching the final 'apply'
3. it doesnt' work. end up clicking on 'cancel' and abrt shows up

Comment 1 Naresh V. 2011-03-21 06:55:15 UTC
Created attachment 486547 [details]
File: backtrace

Comment 2 Naresh V. 2011-03-21 07:01:36 UTC
Some errors in ~/.xsession-errors:


[naresh@section9 Videos]$ tail -f ~/.xsession-errors 
    raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..
params.c:OpenConfFile() - Unable to open configuration file "/home/naresh/.smb/smb.conf":
	No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
	No such file or directory
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
No ID match for device socket://172.16.31.8:9100:
MFG:HP;MDL:Officejet 6300 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;DES:Q8069D;
No ID match for device socket://172.16.31.8:9100:
MFG:HP;MDL:Officejet 6300 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;DES:Q8069D;
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 2739, in on_entNPTNetworkHostname_changed
    self.setNPButtons ()
  File "/usr/share/system-config-printer/newprinter.py", line 1289, in setNPButtons
    checkNPName(self.printers, self.entNPName.get_text()))
AttributeError: 'NewPrinterGUI' object has no attribute 'printers'
Traceback (most recent call last):
  File "/usr/share/system-config-printer/newprinter.py", line 2739, in on_entNPTNetworkHostname_changed
    self.setNPButtons ()
  File "/usr/share/system-config-printer/newprinter.py", line 1289, in setNPButtons
    checkNPName(self.printers, self.entNPName.get_text()))
AttributeError: 'NewPrinterGUI' object has no attribute 'printers'
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/probe_printer.py", line 239, in _do_find
    fn ()
File "/usr/share/system-config-printer/probe_printer.py", line 346, in _probe_hplip
    stderr=null)
File "/usr/lib64/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1202, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/probe_printer.py", line 391, in _probe_smb
    smbc_auth.failed (e)
File "/usr/share/system-config-printer/pysmb.py", line 182, in failed
    raise exc
TimedOutError: (110, 'Connection timed out')
Continuing anyway..
^C

Comment 3 Jiri Popelka 2011-03-21 08:24:55 UTC
Thanks. Seems that bug #680683 is still not fixed in this release.

*** This bug has been marked as a duplicate of bug 680683 ***

Comment 4 Jiri Popelka 2011-03-21 08:51:16 UTC
What does this command show ?

/usr/lib/cups/backend/snmp 172.16.31.8

Comment 5 Naresh V. 2011-03-21 09:08:51 UTC
(In reply to comment #4)
> What does this command show ?
> 
> /usr/lib/cups/backend/snmp 172.16.31.8

[naresh@section9 ]$ /usr/lib/cups/backend/snmp 172.16.31.8
network socket://172.16.31.8 "HP Officejet 6300 series" "Officejet 6300 series" "MFG:HP;MDL:Officejet 6300 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:Q8069D;SN:CN7C6FB36R04J4;S:038000C484001021002c1800000c2880000;J:                    ;Z:0102,0503b927014dc7,0600;BT:000000000000,4F66666963656A657420363330" ""
[naresh@section9 Videos]$ 

I ended up adding this printer via the CUPS web interface for the time being.