Bug 574117 - [abrt] crash in system-config-printer-1.1.16-13.fc12: jobviewer.py:1437:state_reason_removed:NameError: global name 'glib' is not defined
Summary: [abrt] crash in system-config-printer-1.1.16-13.fc12: jobviewer.py:1437:state...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7f03cb22
Depends On:
Blocks: 574131
TreeView+ depends on / blocked
 
Reported: 2010-03-16 16:55 UTC by jofilho
Modified: 2010-03-23 02:12 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.1.18-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 574131 (view as bug list)
Environment:
Last Closed: 2010-03-20 03:40:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.14 KB, text/plain)
2010-03-16 16:55 UTC, jofilho
no flags Details

Description jofilho 2010-03-16 16:55:53 UTC
abrt 1.0.8 detected a crash.

architecture: x86_64
cmdline: python /usr/share/system-config-printer/applet.py
comment: The document was printed.
component: system-config-printer
executable: /usr/share/system-config-printer/applet.py
kernel: 2.6.32.9-70.fc12.x86_64
package: system-config-printer-1.1.16-13.fc12
reason: jobviewer.py:1437:state_reason_removed:NameError: global name 'glib' is not defined
release: Fedora release 12 (Constantine)
How to reproduce: 1. Just printing one sheet (openoffice calc)

backtrace
-----
jobviewer.py:1437:state_reason_removed:NameError: global name 'glib' is not defined

Traceback (most recent call last):
  File "/usr/share/system-config-printer/monitor.py", line 473, in get_notifications
    self.update_jobs (jobs)
  File "/usr/share/system-config-printer/monitor.py", line 716, in update_jobs
    self.check_state_reasons (my_printers, printer_jobs)
  File "/usr/share/system-config-printer/monitor.py", line 331, in check_state_reasons
    self.watcher.state_reason_removed (self, reason)
  File "/usr/share/system-config-printer/jobviewer.py", line 1437, in state_reason_removed
    except glib.GError:
NameError: global name 'glib' is not defined

Local variables in innermost frame:
printer: u'HP_Photosmart_C3100_series'
tuple: (3, u'HP_Photosmart_C3100_series', u'media-empty')
i: 1
notification: <pynotify.Notification object at 0x1cbe910 (NotifyNotification at 0x1d47a80)>
self: <jobviewer.JobViewer instance at 0x1bc63f8>
reasons: [<statereason.StateReason (WARNING,HP_Photosmart_C3100_series,marker-supply-low)>]
reason: <statereason.StateReason (ERROR,HP_Photosmart_C3100_series,media-empty)>
mon: <monitor.Monitor instance at 0x1bc65f0>

Comment 1 jofilho 2010-03-16 16:55:55 UTC
Created attachment 400509 [details]
File: backtrace

Comment 3 Tim Waugh 2010-03-16 17:38:50 UTC
This tiny script:

for a in *.py; do sed -ne 's,^.*except \([a-z]\+\)\..*$,\1,p' "$a" | sort -u | (while read module; do grep -q "import \(.*, *\)\?$module" "$a" /dev/null || echo "$a should import $module"; done); done

finds another instance too, in AdvancedServerSettings.py.  Hopefully that's the last of them.

Comment 4 Fedora Update System 2010-03-16 18:04:59 UTC
system-config-printer-1.1.18-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc11

Comment 5 Fedora Update System 2010-03-16 18:05:52 UTC
system-config-printer-1.1.18-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc12

Comment 6 Fedora Update System 2010-03-18 03:15:23 UTC
system-config-printer-1.1.18-2.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc12

Comment 7 Fedora Update System 2010-03-18 03:29:45 UTC
system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.1.18-2.fc11

Comment 8 Fedora Update System 2010-03-20 03:39:35 UTC
system-config-printer-1.1.18-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-03-23 02:11:42 UTC
system-config-printer-1.1.18-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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