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 658665 - Getobjectnameatcoords crashes on latest ldtp2 from git
Getobjectnameatcoords crashes on latest ldtp2 from git
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp2
2.0.0
Other Linux
: Normal normal
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2011-09-09 16:51 UTC by Vadim Rutkovsky
Modified: 2011-09-14 06:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Suggested patch (1.13 KB, patch)
2011-09-10 15:39 UTC, Vadim Rutkovsky
none Details | Review
Updated patch (1.14 KB, patch)
2011-09-10 22:46 UTC, Vadim Rutkovsky
none Details | Review

Description Vadim Rutkovsky 2011-09-09 16:51:56 UTC
Steps To Reproduce:
1. Get latest ldtp2 source from git (revision 0b08e0d63d7d1e56314879d6d9423065f6752485)
2. Start python:
>> import ldtp
>>> ldtp.getobjectnameatcoords()
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
  • File "ldtp/client.py", line 54 in __call__
    return self.__send(self.__name, args)
  • File "/usr/lib/python2.7/xmlrpclib.py", line 1575 in __request
    verbose=self.__verbose
  • File "ldtp/client.py", line 102 in request
    raise e xmlrpclib.Fault: <Fault 8002: "'gi.repository.Gtk' object has no attribute 'gdk'">

Maybe, some required libraries were not installed?
Comment 1 Nagappan Alagappan 2011-09-10 00:36:20 UTC
Which distribution are you trying ? I have some issues in Ubuntu 11.10 to fix. I can reproduce the issue.
Comment 2 Vadim Rutkovsky 2011-09-10 08:23:44 UTC
Yes, I'm using Ubuntu 11.10
Comment 3 Vadim Rutkovsky 2011-09-10 15:39:06 UTC
Created attachment 196179 [details] [review]
Suggested patch

Here is a simple patch for that issue
Comment 4 Vadim Rutkovsky 2011-09-10 22:46:04 UTC
Created attachment 196191 [details] [review]
Updated patch
Comment 5 Nagappan Alagappan 2011-09-10 23:30:42 UTC
When I tried similar patch, it crashed LDTP, is your patch working ? Thanks
Comment 6 Vadim Rutkovsky 2011-09-10 23:40:28 UTC
yeah, the patch with id=196191 works fine with Gtk3
Comment 7 Nagappan Alagappan 2011-09-14 06:41:43 UTC
Fixed in git head, thanks for the bug report