abhijitmamarde / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

fatal error starting autokey. no json object could be decoded #249

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Spawning of AutoKey
2.
3.

What is the expected output? What do you see instead?
AutoKey running.  Instead, error message "fatal error starting autokey. no json 
object could be decoded".

What version of the product are you using? On what operating system?
AutoKey
Qt: 4.8.1
KDE Development Platform: 4.8.5 (4.8.5)
AutoKey: 0.71.2

OS
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:   precise
Linux daComputer 3.2.0-49-generic #75-Ubuntu SMP Tue Jun 18 17:39:32 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.
daOwner@daComputer:~$ autokey -l
KGlobal::locale::Warning your global KLocale is being recreated with a valid 
main component instead of a fake component, this usually means you tried to 
call i18n related functions before your main component was created. You should 
not do that since it most likely will not work 
INFO - root - Initialising application
INFO - config-manager - Loading config from existing file: 
/home/daOwner/.config/autokey/autokey.json
ERROR - config-manager - Error while loading configuration. Backup has been 
restored.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autokey/configmanager.py", line 170, in get_config_manager
    configData = json.load(pFile)
  File "/usr/lib/python2.7/json/__init__.py", line 278, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
INFO - config-manager - Loading config from existing file: 
/home/daOwner/.config/autokey/autokey.json
ERROR - config-manager - Error while loading configuration. Cannot recover.
ERROR - root - Fatal error starting AutoKey: No JSON object could be decoded
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autokey/qtapp.py", line 90, in __init__
    self.initialise(args.isSet("configure"))
  File "/usr/lib/python2.7/dist-packages/autokey/qtapp.py", line 127, in initialise
    self.configManager = get_config_manager(self)
  File "/usr/lib/python2.7/dist-packages/autokey/configmanager.py", line 180, in get_config_manager
    return get_config_manager(autoKeyApp, True)
  File "/usr/lib/python2.7/dist-packages/autokey/configmanager.py", line 170, in get_config_manager
    configData = json.load(pFile)
  File "/usr/lib/python2.7/json/__init__.py", line 278, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
daOwner@daComputer:~$ 

I attached a snippet of the log showing the behavior prior to the beginning of 
the error.

If someone can show me how to decode the autokey.json file I'll be willing to 
share it if I know it doesn't contain private information in the configuration. 
 I'm going to keep a copy and delete the original as an attempt to resolve the 
problem.

Original issue reported on code.google.com by peterwor...@gmail.com on 24 Jul 2013 at 8:50

Attachments: