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: |
|
||||||||
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 |
Description of problem: While trying to setup a printer. I use the system-config-printer command. Until about three weeks ago, I started seeing this issue: $ system-config-printer /usr/share/system-config-printer/system-config-printer.py:30: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded. from gi.repository import GdkPixbuf Floating exception $ Version-Release number of selected component (if applicable): $ yum list system-config-printer Loaded plugins: amazon-id, rhui-lb, search-disabled-repos Installed Packages system-config-printer.x86_64 1.4.1-19.el7 @prod-base $ How reproducible: Type the command: system-config-printer Steps to Reproduce: 1. type the command: system-config-printer 2. 3. Actual results: Expected results: Additional info: I noticed this or a very similar issue has been fixed in Fedora 25. I'd like a to know if a fix can be implemented for RH 7.4 + https://bugzilla.redhat.com/show_bug.cgi?id=1354606 It’s a Fedora fix, but somehow it was tagged as a Duplicate (of a red hat issue) here: https://bugzilla.redhat.com/show_bug.cgi?id=1383869