Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK3 Branch: /usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:60: DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated. #253

Closed
philipraets opened this issue Feb 12, 2019 · 1 comment

Comments

@philipraets
Copy link

I am using the gtk3 branch with python3 on openSUSE Tumbleweed. They upgraded python to python3.7 and this gives me the following when starting nautilus (rabbitvcs still works):

/usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:60: 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 # FIXME: this might actually already set the default loop
/usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:429: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
gobject.threads_init()
/usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:436: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead
mainloop = gobject.MainLoop()
/usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:440: PyGIDeprecationWarning: GObject.idle_add is deprecated; use GLib.idle_add instead
gobject.idle_add(sys.stdout.write, "Started status checker service\n")
/usr/lib/python3.7/site-packages/rabbitvcs/services/checkerservice.py:441: PyGIDeprecationWarning: GObject.idle_add is deprecated; use GLib.idle_add instead
gobject.idle_add(sys.stdout.flush)

I switched to that branch since master and python2 doesn't work on my system (made previous bugreports about that)

@philipraets
Copy link
Author

The error has been resolved in the latest commits, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant