Bug 1608417
Summary: | DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lukas Slebodnik <lslebodn> |
Component: | setroubleshoot | Assignee: | Petr Lautrbach <plautrba> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | christian.hardy, dwalsh, edgar.hoch, keesdejong+dev, plautrba, redhat, sixpack13, vmojzis |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | setroubleshoot-3.3.20-2.fc29 setroubleshoot-3.3.20-3.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-09-06 12:58:48 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: |
Description
Lukas Slebodnik
2018-07-25 13:38:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'. same here. maybe an easier way to reproduce: just start "SElinux Trubleshooter" from your apps Still happening on F30: $ rpm -qf `which sealert` setroubleshoot-server-3.3.20-1.fc30.x86_64 $ sealert -l 4f92593e-0120-4988-b9ad-1e43764e86c5 > /dev/null /usr/bin/sealert:32: DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated. Instead, use this sequence: from dbus.mainloop.glib import DBusGMainLoop DBusGMainLoop(set_as_default=True) import dbus.glib The following would make this warning go away, but I don't know if this is The Right Thing To Do: $ diff -u /usr/bin/sealert{.orig,} --- /usr/bin/sealert.orig 2019-07-26 02:02:06.000000000 -0700 +++ /usr/bin/sealert 2019-08-09 12:51:31.271212450 -0700 @@ -29,7 +29,6 @@ GLib.set_prgname('setroubleshoot') import dbus -import dbus.glib import dbus.service import errno as Errno import gettext @@ -42,6 +41,9 @@ import sys import slip.dbus.service +from dbus.mainloop.glib import DBusGMainLoop +DBusGMainLoop(set_as_default=True) + from setroubleshoot.config import parse_config_setting, get_config domain = get_config('general', 'i18n_text_domain') kwargs = {} This bug report exists since about a year. There was updated packages released in the meantime, but this problem was not fixed in the updated packages. Please fix it in the next updated package. sealert still fails in Fedora 30. FEDORA-2019-8147bfe299 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8147bfe299 FEDORA-2019-a33fc91747 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a33fc91747 setroubleshoot-3.3.20-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8147bfe299 setroubleshoot-3.3.20-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-a33fc91747 setroubleshoot-3.3.20-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. setroubleshoot-3.3.20-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. setroubleshoot-3.3.20-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. |