After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657160 - pyatspi 2.1.5 imports gobject and gi.gobject
pyatspi 2.1.5 imports gobject and gi.gobject
Status: RESOLVED FIXED
Product: pyatspi2
Classification: Applications
Component: general
unspecified
Other Windows
: Normal normal
: ---
Assigned To: Li Yuan
pyatspi2 maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-08-23 12:53 UTC by Dominique Leuenberger
Modified: 2015-02-27 16:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2011-08-23 12:53:32 UTC
Current release of pyatspi import gobject and gi-version of gobject in registry.py, which is not supported IIRC.

diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index 06cf1b4..fb3ba1e 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -28,7 +28,6 @@ __all__ = ["Registry",
           "set_default_registry"]

 import os as _os
-import gobject
 from gi.repository import Atspi
 from gi.repository import GObject
 import time
@@ -80,7 +79,7 @@ class Registry(object):
                 self.app_event_register = None
                 self.desktop = None

-               self.main_loop = gobject.MainLoop()
+               self.main_loop = GObject.MainLoop()

         def __call__(self):
                 """


Should fix that issue.
Comment 1 André Klapper 2012-03-07 14:10:34 UTC
pyatspi => at-spi product
Comment 2 Dominique Leuenberger 2013-02-08 20:00:33 UTC
This was actually merged in

commit 1f5201b28d1e71be967ae26ecb4ec290466bb548
Author: Mike Gorse <mgorse@novell.com>
Date:   Thu Aug 25 13:18:00 2011 -0500

    Use introspection for the GLib main loop
Comment 3 André Klapper 2015-02-27 16:40:51 UTC
[Moving at-spi/pyatspi2 bugs to separate product. See bug 740075]