Bug 1507065
Summary: | PyGIWarning while running system-config-printer | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Dan E <miralvalle> | ||||||
Component: | system-config-printer | Assignee: | Zdenek Dohnal <zdohnal> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Petr Sklenar <psklenar> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.4 | CC: | ayadav, ij2fdc402, john.ballentine, kzilkova, psklenar, thozza, vchoudha, zdohnal | ||||||
Target Milestone: | rc | Keywords: | AutoVerified, FastFix, Patch, Reproducer, TestCaseProvided | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | system-config-printer-1.5.11-22.el7 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-03-31 19:43:16 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1534569, 1630905, 1709724, 1716960 | ||||||||
Attachments: |
|
Description
Dan E
2017-10-27 14:50:53 UTC
Greetings, Is there any workaround for this? When can we expect a fix? system-config-abrt behaves the same like system-config-printer (its start ends with floating point exception), so the issue (bug or only misconfiguration) is clearly not with s-c-p. Created attachment 1409887 [details]
path to avoid pigiwarning
there is patch fixing warnings comes from gdk. It was tested on rhel75 on x86_64
Please don't miss this patch with crash of ssh - It is different issue, which should be tracked in different bugzilla.
Here's a quick fix by including the newly required extra gi.require_version lines: # diff --context /usr/share/system-config-printer/system-config-printer.py.orig /usr/share/system-config-printer/system-config-printer.py *** /usr/share/system-config-printer/system-config-printer.py.orig 2018-10-31 12:55:48.161224451 -0700 --- /usr/share/system-config-printer/system-config-printer.py 2018-10-31 12:57:46.330998160 -0700 *************** *** 28,35 **** --- 28,37 ---- import thread import dbus import gi + gi.require_version('GdkPixbuf', '2.0') from gi.repository import GdkPixbuf try: + gi.require_version('Gdk', '3.0') from gi.repository import Gdk gi.require_version('Gtk', '3.0') from gi.repository import Gtk # diff --context /usr/share/system-config-printer/jobviewer.py.orig /usr/share/system-config-printer/jobviewer.py *** /usr/share/system-config-printer/jobviewer.py.orig 2018-10-31 13:07:43.084853905 -0700 --- /usr/share/system-config-printer/jobviewer.py 2018-10-31 13:09:33.894641430 -0700 *************** *** 24,29 **** --- 24,31 ---- import dbus import dbus.glib import dbus.service + import gi + gi.require_version('Notify', '0.7') from gi.repository import Notify import gettext from gi.repository import GLib *************** *** 51,56 **** --- 53,59 ---- cups.require("1.9.47") try: + gi.require_version('GnomeKeyring', '1.0') from gi.repository import GnomeKeyring USE_KEYRING=True except ImportError: Hi Steve, thank you for the patch! Actually Petr already created the patch for PyGi warnings which were shown in Dan's case, but I can verify other warnings show up and your patch fixes them. Thank you! I see that a TestCaseNeeded flag was added. It seems like we have a fairly simple manual bug-reproduction process. What additional info is needed to create a test case? (In reply to Steve Bonds from comment #30) > I see that a TestCaseNeeded flag was added. It seems like we have a fairly > simple manual bug-reproduction process. What additional info is needed to > create a test case? This means that automated / manual test case in our internal tooling needs to be created as part of fixing this bug. Got it. Since that is "internal tooling" there doesn't seem to be much people from the world at large can do from an Open Source point of view. Is that correct? Created attachment 1593057 [details]
Complete patch
Complete patch.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1044 |