Re: [orca-list] Exception: SettingsManager._loadBackend failed



When I try to start orca-3.21.92 I get this

$ orca
Traceback (most recent call last):
   File "/usr/local/bin/orca", line 44, in <module>
     from orca import orca
   File "/usr/local/lib/python3.3/site-packages/orca/orca.py", line 
78, in <module>
     from . import settings_manager
   File 
"/usr/local/lib/python3.3/site-packages/orca/settings_manager.py",
line 568, in <module>
     _manager = SettingsManager()
   File 
"/usr/local/lib/python3.3/site-packages/orca/settings_manager.py",
line 111, in __init__
     raise Exception('SettingsManager._loadBackend failed.')
Exception: SettingsManager._loadBackend failed.

I believe orca uses a json backend for settings by default - if I 
bring up a
python3 console I can import json without errors.

I guess I'm missing something, but what?

Joanie is on a business trip so she may not be able to look into this
immediatelly.
In the mean time, I'll try to come up with some steps you might follow in
order to troubleshoot this.
You are correct orca stores its settings in json encoded file.
The exception you have posted indicates there is a problem with a file
/usr/local/lib/python3.3/site-packages/orca/backends/json_backend.py
or there is something else missing when trying to import that file.

Note orca even did not tried to initialize that module it just tried to
import it.

You might like to run these three lines one after the other to find out
why the module can't be imported via python.
So first start python by just running python in the terminal.
Make sure it's python3.3.

Now copy and paste each line at a time and observe the python output
where it breaks and what you might be missing.
# start copying line at a time below
import importlib
import orca
importlib.import_module('.backends.json_backend', 'orca') # don't copy
this and below

Still if there is nothing usefull printed, that json_backend module
imports additional modules.
You can test if you can import them all.

from json import load, dump
import os
from orca import settings, acss

Thanks for the suggestions.

It looks like the cause of the problem was that I had not compiled
speech-dispatcher against espeak-ng.
Once I went back and did this, the initial problem disappeared.

After figuring out that orca has a runtime dependency on gst-plugins-good,
procps and (maybe) dbus-python and after updating pyatspi from 3.10 -> 3.18,
orca works :)

Thanks again
John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]