Comments (7)
Sorry for the late reply. I monitor our listserv/group
https://groups.google.com/forum/#!forum/autokey-users
closely, but get here less frequently.
We need a better problem report to know how to proceed. A trace wouldn't hurt either.
Everyone needs to keep in mind that each computer and setup is somewhat unique. We really need to know about yours where the problem occurred. Also, since it worked "before" for you, what changed?
See:
https://github.com/autokey/autokey/wiki/Problem-Reporting-Guide
Initial comments:
- Since it appears to be character set related, please also provide your locale settings. Run
locale
in a terminal and post the results here.
- What happens if you terminate AutoKey and then run the following from a terminal:
LC_ALL=C LC_CTYPE=C autokey-gtk
or
LC_ALL=C LC_CTYPE=C autokey-qt
depending on which front end you have installed?
Character sets and collating sequences are still a rough patch in Linux. There are even bugs in some of the character sets themselves.
Joe
from autokey-python2.
Same error message using Lubuntu 14.04 (64), and autokey-gtk 0.90.4-1 .
It appears to happen after failure to connect to dbus, due to a dbus problem - (dbus-daemon for the system bus is running under root, not messagebus, and dbus-daemon for the user's session has not created socket /tmp/dbus-* ). The result is a warning, but autokey continues and tries to parse some (random?) string, hence the non-UTF-8 character. This WARNING 'from dbus' is actually FATAL for autokey.
$ autokey-gtk -l
*** (autokey-gtk:7515): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-8CRvv4ZlgA: Connection refused
2016-03-20 08:50:21,599 INFO - root - Initialising application
2016-03-20 08:50:21,614 INFO - root - Initialise global hotkeys
2016-03-20 08:50:21,615 INFO - config-manager - Loading config from existing file: /home/***/.config/autokey/autokey.json
2016-03-20 08:50:21,616 DEBUG - config-manager - Loading folder at '/home/***/.config/autokey/data/My Phrases'
2016-03-20 08:50:21,620 DEBUG - config-manager - Loading folder at '/home/***/.config/autokey/data/Sample Scripts'
2016-03-20 08:50:21,622 INFO - config-manager - Configuration changed - rebuilding in-memory structures
2016-03-20 08:50:21,623 DEBUG - inotify - Adding watch for /home/***/.config/autokey/data/My Phrases
2016-03-20 08:50:21,623 DEBUG - inotify - Adding watch for /home/***/.config/autokey/data/My Phrases/Addresses
2016-03-20 08:50:21,624 DEBUG - inotify - Adding watch for /home/***/.config/autokey/data/Sample Scripts
2016-03-20 08:50:21,624 INFO - config-manager - Successfully loaded configuration
2016-03-20 08:50:21,624 DEBUG - inotify - Adding watch for /home/***/.config/autokey/data
2016-03-20 08:50:21,625 DEBUG - inotify - Adding watch for /home/***/.config/autokey
2016-03-20 08:50:21,625 DEBUG - config-manager - Global settings: {'showTrayIcon': True, 'sortByUsageCount': True, 'scriptGlobals': {}, 'undoUsingBackspace': True, 'notificationIcon': u'autokey-status', 'enableQT4Workaround': False, 'promptToSave': False, 'menuTakesFocus': False, 'interfaceType': u'XRecord', 'windowDefaultSize': [600, 400], 'showToolbar': True, 'serviceRunning': True, 'columnWidths': [150, 50, 100], 'workAroundApps': u'.*VirtualBox.*|krdc.Krdc', 'hPanePosition': 150, 'isFirstRun': True}
2016-03-20 08:50:21,626 INFO - service - Starting service
2016-03-20 08:50:21,668 ERROR - root - Error starting interface: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/autokey/gtkapp.py", line 131, in initialise
self.service.start()
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 78, in start
self.mediator = IoMediator(self)
File "/usr/lib/python2.7/dist-packages/autokey/iomediator.py", line 142, in __init__
self.interface = XRecordInterface(self, service.app)
File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 88, in __init__
self.__initMappings()
File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 140, in __initMappings
self.localDisplay = display.Display()
File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 62, in __init__
display.Display.__init__(*(self, ) + args, **keys)
File "/usr/lib/python2.7/dist-packages/Xlib/protocol/display.py", line 61, in __init__
name, host, displayno)
File "/usr/lib/python2.7/dist-packages/Xlib/support/connect.py", line 93, in get_auth
return getattr(mod, modname).get_auth(sock, dname, host, dno)
File "/usr/lib/python2.7/dist-packages/Xlib/support/unix_connect.py", line 116, in new_get_auth
au = xauth.Xauthority()
File "/usr/lib/python2.7/dist-packages/Xlib/xauth.py", line 84, in __init__
self.entries.append((family, addr.decode('UTF-8'),
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte
2016-03-20 08:50:28,722 INFO - root - Entering main()
from autokey-python2.
I have the same problem.
My os:
System: Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2) Desktop: Cinnamon 2.8.8 (Gtk 2.24.23) dm: mdm
Distro: Linux Mint 17.3 Rosa
Autokey was installed from package repository (ver 0.90.4-1). When i run autokey-gtk -l
i get:
2016-05-20 16:58:20,771 INFO - root - Initialising application
2016-05-20 16:58:20,778 INFO - root - Initialise global hotkeys
2016-05-20 16:58:20,778 INFO - config-manager - Loading config from existing file: /home/kossak/.config/autokey/autokey.json
2016-05-20 16:58:20,805 DEBUG - config-manager - Loading folder at '/home/kossak/.config/autokey/data/Sample Scripts'
2016-05-20 16:58:20,825 DEBUG - config-manager - Loading folder at '/home/kossak/.config/autokey/data/My Phrases'
2016-05-20 16:58:20,828 INFO - config-manager - Configuration changed - rebuilding in-memory structures
2016-05-20 16:58:20,828 DEBUG - inotify - Adding watch for /home/kossak/.config/autokey/data/Sample Scripts
2016-05-20 16:58:20,828 DEBUG - inotify - Adding watch for /home/kossak/.config/autokey/data/My Phrases
2016-05-20 16:58:20,828 DEBUG - inotify - Adding watch for /home/kossak/.config/autokey/data/My Phrases/Addresses
2016-05-20 16:58:20,828 INFO - config-manager - Successfully loaded configuration
2016-05-20 16:58:20,829 DEBUG - inotify - Adding watch for /home/kossak/.config/autokey/data
2016-05-20 16:58:20,829 DEBUG - inotify - Adding watch for /home/kossak/.config/autokey
2016-05-20 16:58:20,829 DEBUG - config-manager - Global settings: {'showTrayIcon': True, 'sortByUsageCount': True, 'scriptGlobals': {}, 'undoUsingBackspace': True, 'notificationIcon': u'autokey-status', 'enableQT4Workaround': False, 'promptToSave': False, 'menuTakesFocus': False, 'interfaceType': u'XRecord', 'windowDefaultSize': [600, 400], 'showToolbar': True, 'serviceRunning': True, 'columnWidths': [150, 50, 100], 'workAroundApps': u'.*VirtualBox.*|krdc.Krdc', 'hPanePosition': 150, 'isFirstRun': True}
2016-05-20 16:58:20,829 INFO - service - Starting service
2016-05-20 16:58:20,865 ERROR - root - Error starting interface: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/autokey/gtkapp.py", line 131, in initialise
self.service.start()
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 78, in start
self.mediator = IoMediator(self)
File "/usr/lib/python2.7/dist-packages/autokey/iomediator.py", line 142, in __init__
self.interface = XRecordInterface(self, service.app)
File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 88, in __init__
self.__initMappings()
File "/usr/lib/python2.7/dist-packages/autokey/interface.py", line 140, in __initMappings
self.localDisplay = display.Display()
File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python2.7/dist-packages/Xlib/display.py", line 62, in __init__
display.Display.__init__(*(self, ) + args, **keys)
File "/usr/lib/python2.7/dist-packages/Xlib/protocol/display.py", line 61, in __init__
name, host, displayno)
File "/usr/lib/python2.7/dist-packages/Xlib/support/connect.py", line 93, in get_auth
return getattr(mod, modname).get_auth(sock, dname, host, dno)
File "/usr/lib/python2.7/dist-packages/Xlib/support/unix_connect.py", line 116, in new_get_auth
au = xauth.Xauthority()
File "/usr/lib/python2.7/dist-packages/Xlib/xauth.py", line 84, in __init__
self.entries.append((family, addr.decode('UTF-8'),
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc0 in position 0: invalid start byte
2016-05-20 16:58:23,489 INFO - root - Entering main()
from autokey-python2.
Don't have an answer for this one (or the resources to find one).
I would suggest (as I did to palloy on our support list) contacting the dbus folks to see if they can shed any light on the issue.
dbus users/developers ( [email protected] http://lists.freedesktop.org/mailman/listinfo/dbus/)
Until we have an active development team, there's not much we can do for a very technical issue like this.
I hate to suggest it, but if you can't resolve this issue, you may want to check out this and see if you have any better luck.
from autokey-python2.
dbus couldn't help either - they said everything was apparently OK their
end.
I'm using xbindkeys instead now.
On 25/05/16 18:07, Joe wrote:
Don't have an answer for this one (or the resources to find one).
I would suggest (as I did to palloy on our support list) contacting
the dbus folks to see if they can shed any light on the issue.dbus users/developers ( [email protected]
mailto:[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus/)Until we have an active development team, there's not much we can do
for a very technical issue like this.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
autokey/autokey#40 (comment)
from autokey-python2.
Sorry to hear that, but good to know. Maybe the other branch of AutoKey will work better. (See the edit to my last post). At least they have an active developer.
from autokey-python2.
I just installed AutoKey-Py3 and I can confirm that it doesn't have this problem.
from autokey-python2.
Related Issues (20)
- Window Filter to exclude gnome terminal HOT 3
- Autokey writes intensively to log file, how to disable it? HOT 7
- NP_ENTER key missing & "<enter>" converted XK_KP_Enter HOT 1
- PayPal Donations link does not work HOT 1
- TXT file: line break instead of paragraph break HOT 3
- Request - Would like to have option for a custom default folder HOT 1
- autokey vs autokey-py3 HOT 2
- Fatal error starting AutoKey HOT 1
- Feature request: TextExpander Compatibility HOT 1
- Czech characters HOT 1
- Numpad Numbers HOT 1
- CAPSLOCK as a modifier HOT 3
- Is there a way to quick set the abbreviation? HOT 2
- simple date insertion fails HOT 1
- using <script> in a phrase freezes autokey and parts of the desktop HOT 1
- How to bring the dialog.list_menu window to the front HOT 1
- Why can't my phrases work? (My script does) HOT 1
- Pressing AutoKey phrase key combination reveals and freezes dock in Kubuntu 20.04 (KDE Plasma Desktop) HOT 2
- Cheat engine HOT 2
- Syahaja3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autokey-python2.