[orca-list] "UnboundLocalError" while attempting to save preferences on Ubuntu 18.04.1



Hi all,

 

I wonder why orca did not leave the “Screen reader preferences” dialog when I pressed the <ok> button, or why nothing seems to happen when I press the <Apply> button.

 

In order to know what happens, I did the following:

 

  1. I opened a terminal window.
  2. At the prompt, I pressed the “script” command for the terminal to log all the activity in a “typescript” file.
  3. Then, I stopped orca by pressing <alt+super+s>.
  4. I waited a few seconds after I heard “Screen reader off” and read “screen not in text mode” in braille.
  5. Since I was in the terminal window yet, I type the following command: “orca –debug”
  6. I could hear “screen reader on” and browse the terminal window in braille so I pressed <insert+space> to open the screen reader preferences.
  7. I tried to change one setting and then pressed the <Apply> button.

 

On the terminal, I received the following error:

 

----- Beginning of error text -----

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/orca/orca_gui_prefs.py", line 3054, in applyButtonClicked

    self.writeUserPreferences()

  File "/usr/lib/python3/dist-packages/orca/orca_gui_prefs.py", line 385, in writeUserPreferences

    keyBindingsDict)

  File "/usr/lib/python3/dist-packages/orca/settings_manager.py", line 485, in saveSettings

    self.profileKeybindings)

  File "/usr/lib/python3/dist-packages/orca/backends/gsettings_backend.py", line 232, in saveProfileSettings

    self._saveVoiceSettings(general['voices'], profile)

  File "/usr/lib/python3/dist-packages/orca/backends/gsettings_backend.py", line 615, in _saveVoiceSettings

    elif appSpecific == False and setEstablished == True:

UnboundLocalError: local variable 'setEstablished' referenced before assignment

----- End of error text -----

 

My system is Ubuntu 18.04.1 with Gnome 3.28.

 

Did anyone else notice this? What could be wrong in my environment?

 

Many thanks in advance for any advice. Have a nice day. Chris D



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