I can confirm that this bug is also currently present in Ubuntu 13.04
Background:
I've created a simple python script so that AutoKey-GTK can alphabetize
lines of selected text I select in a text editor (like gedit). The
script is short and this is the entire script:
-------------------------------------------------------------------------
str = clipboard.get_selection()
ary = str.split('\n')
ary.sort()
str = '\n'.join(ary)
keyboard.send_keys(str)
-------------------------------------------------------------------------
Debugging:
I ran autokey-gtk in debug mode by typing this command in a terminal:
autokey-gtk -l
When I triggered the script, here's the output that was produced:
2013-10-07 16:48:39,105 DEBUG - service - Script runner executing:
Script('Alphabetize Lines')
2013-10-07 16:48:39,105 ERROR - service - Script error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 454, in
execute
exec script.code in scope
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/autokey/scripting.py", line 820, in
get_selection
self.__execAsync(self.selection.request_text, self.__receive)
File "/usr/lib/python2.7/dist-packages/autokey/scripting.py", line 865, in
__execAsync
callback(*args)
File "/usr/lib/python2.7/dist-packages/gi/types.py", line 113, in function
return info.invoke(*args, **kwargs)
TypeError: request_text() takes exactly 3 arguments (2 given)
Exception in thread Phrase-thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 464, in
execute
self.app.notify_error(_("The script '%s' encountered an error") %
script.description)
File "/usr/lib/python2.7/dist-packages/autokey/gtkapp.py", line 239, in
notify_error
self.notifier.notify_error(message)
File "/usr/lib/python2.7/dist-packages/autokey/gtkui/notifier.py", line 145,
in notify_error
self.show_notify(message, Gtk.STOCK_DIALOG_ERROR)
File "/usr/lib/python2.7/dist-packages/autokey/gtkui/notifier.py", line 156,
in show_notify
Gdk.threads_enter()
NameError: global name 'Gdk' is not defined
** Bug watch added: AutoKey Tracker #197
http://code.google.com/p/autokey/issues/detail?id=197
** Also affects: autokey via
http://code.google.com/p/autokey/issues/detail?id=197
Importance: Unknown
Status: Unknown
** Tags added: precise saucy
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1075429
Title:
autokey-gtk crashes when clipboard.get_clipboard() is invoked
To manage notifications about this bug go to:
https://bugs.launchpad.net/autokey/+bug/1075429/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs