|
List Info
Thread: Orca Traceback when setting up CVS head
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-20 19:55:22 |
Hello. Getting the following when running 'orca -t' with the
latest
CVS head. Wondering if anyone else is seeing this, or if
something on
my end is out of sync?:
...
Enable Braille Monitor? Enter y or n: n
Traceback (most recent call last):
File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
orca.py", line 963, in _showPreferencesConsole
module.showPreferencesUI()
File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
orca_console_prefs.py", line 361, in showPreferencesUI
logoutNeeded = orca_prefs.writePreferences(prefsDict)
TypeError: writePreferences() takes exactly 2 arguments (1
given)
Cannot start Orca because it cannot connect
to the Desktop. Please make sure the DISPLAY
environment variable has been set.
Thanks.
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-20 20:52:43 |
Wow! Thanks for finding this. I think it snuck in with the
work to
allow you to modify your keybindings via the preferences
GUI. Can you
try the following patch to see if it fixes the problem?
Will
Index: orca_prefs.py
============================================================
=======
RCS file: /cvs/gnome/orca/src/orca/orca_prefs.py,v
retrieving revision 1.17
diff -p -u -r1.17 orca_prefs.py
--- orca_prefs.py 13 Dec 2006 01:21:31 -0000 1.17
+++ orca_prefs.py 20 Dec 2006 20:51:59 -0000
 -370,7
+370,7  def readPreferences():
return prefsDict
-def writePreferences(prefsDict, treeModel):
+def writePreferences(prefsDict, treeModel=None):
"""Creates the directory and files to
hold user preferences. Note
that callers of this method may want to consider using
an ordered
dictionary so that the keys are output in a
deterministic order.
 -437,7
+437,8  def writePreferences(prefsDict, treeMode
value = prefsDict[key]
prefs.writelines("orca.settings.%s =
%sn" % (key, value))
- _writeKeyBindingsMap(prefs, treeModel)
+ if treeModel:
+ _writeKeyBindingsMap(prefs, treeModel)
_writePreferencesPostamble(prefs)
prefs.close()
On Wed, 2006-12-20 at 13:55 -0600, Nolan Darilek wrote:
> Hello. Getting the following when running 'orca -t'
with the latest
> CVS head. Wondering if anyone else is seeing this, or
if something on
> my end is out of sync?:
>
> ...
> Enable Braille Monitor? Enter y or n: n
>
> Traceback (most recent call last):
> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> orca.py", line 963, in _showPreferencesConsole
> module.showPreferencesUI()
> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> orca_console_prefs.py", line 361, in
showPreferencesUI
> logoutNeeded =
orca_prefs.writePreferences(prefsDict)
> TypeError: writePreferences() takes exactly 2 arguments
(1 given)
>
> Cannot start Orca because it cannot connect
> to the Desktop. Please make sure the DISPLAY
> environment variable has been set.
>
> Thanks.
>
> _______________________________________________
> Orca-list mailing list
> Orca-list gnome.org
> http
://mail.gnome.org/mailman/listinfo/orca-list
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-20 21:06:11 |
Hi Nolan,
> Hello. Getting the following when running 'orca -t'
with the latest
> CVS head. Wondering if anyone else is seeing this, or
if something on
> my end is out of sync?:
>
> ...
> Enable Braille Monitor? Enter y or n: n
>
> Traceback (most recent call last):
> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> orca.py", line 963, in _showPreferencesConsole
> module.showPreferencesUI()
> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> orca_console_prefs.py", line 361, in
showPreferencesUI
> logoutNeeded =
orca_prefs.writePreferences(prefsDict)
> TypeError: writePreferences() takes exactly 2 arguments
(1 given)
>
> Cannot start Orca because it cannot connect
> to the Desktop. Please make sure the DISPLAY
> environment variable has been set.
>
This looks like a recent regression with the inclusion of
the key bindings
code. Here's an (untested) patch that hopefully should fix
it:
Index: orca_console_prefs.py
============================================================
=======
RCS file: /cvs/gnome/orca/src/orca/orca_console_prefs.py,v
retrieving revision 1.14
diff -u -r1.14 orca_console_prefs.py
--- orca_console_prefs.py 17 Nov 2006 20:33:57 -0000
1.14
+++ orca_console_prefs.py 20 Dec 2006 21:05:19 -0000
 -358,7
+358,7 
state = answer[0:1] == 'Y' or answer[0:1] == 'y'
prefsDict["enableBrailleMonitor"] = state
- logoutNeeded = orca_prefs.writePreferences(prefsDict)
+ logoutNeeded = orca_prefs.writePreferences(prefsDict,
None)
if logoutNeeded:
sayAndPrint(_("Accessibility support for GNOME
has just been
enabled. "),
logoutNeeded,
Index: orca_prefs.py
============================================================
=======
RCS file: /cvs/gnome/orca/src/orca/orca_prefs.py,v
retrieving revision 1.17
diff -u -r1.17 orca_prefs.py
--- orca_prefs.py 13 Dec 2006 01:21:31 -0000 1.17
+++ orca_prefs.py 20 Dec 2006 21:05:20 -0000
 -437,7
+437,8 
value = prefsDict[key]
prefs.writelines("orca.settings.%s =
%sn" % (key, value))
- _writeKeyBindingsMap(prefs, treeModel)
+ if treeModel:
+ _writeKeyBindingsMap(prefs, treeModel)
_writePreferencesPostamble(prefs)
prefs.close()
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-20 21:13:48 |
Alternatively, just pull the latest from GNOME CVS HEAD.
Will
http
://bugzilla.gnome.org/show_bug.cgi?id=388039
On Wed, 2006-12-20 at 15:52 -0500, Willie Walker wrote:
> Wow! Thanks for finding this. I think it snuck in
with the work to
> allow you to modify your keybindings via the
preferences GUI. Can you
> try the following patch to see if it fixes the problem?
>
> Will
>
> Index: orca_prefs.py
>
============================================================
=======
> RCS file: /cvs/gnome/orca/src/orca/orca_prefs.py,v
> retrieving revision 1.17
> diff -p -u -r1.17 orca_prefs.py
> --- orca_prefs.py 13 Dec 2006 01:21:31 -0000
1.17
> +++ orca_prefs.py 20 Dec 2006 20:51:59 -0000
>  -370,7 +370,7  def readPreferences():
>
> return prefsDict
>
> -def writePreferences(prefsDict, treeModel):
> +def writePreferences(prefsDict, treeModel=None):
> """Creates the directory and files
to hold user preferences. Note
> that callers of this method may want to consider
using an ordered
> dictionary so that the keys are output in a
deterministic order.
>  -437,7 +437,8  def writePreferences(prefsDict, treeMode
> value = prefsDict[key]
> prefs.writelines("orca.settings.%s =
%sn" % (key, value))
>
> - _writeKeyBindingsMap(prefs, treeModel)
> + if treeModel:
> + _writeKeyBindingsMap(prefs, treeModel)
>
> _writePreferencesPostamble(prefs)
> prefs.close()
>
> On Wed, 2006-12-20 at 13:55 -0600, Nolan Darilek wrote:
> > Hello. Getting the following when running 'orca
-t' with the latest
> > CVS head. Wondering if anyone else is seeing this,
or if something on
> > my end is out of sync?:
> >
> > ...
> > Enable Braille Monitor? Enter y or n: n
> >
> > Traceback (most recent call last):
> > File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> > orca.py", line 963, in
_showPreferencesConsole
> > module.showPreferencesUI()
> > File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> > orca_console_prefs.py", line 361, in
showPreferencesUI
> > logoutNeeded =
orca_prefs.writePreferences(prefsDict)
> > TypeError: writePreferences() takes exactly 2
arguments (1 given)
> >
> > Cannot start Orca because it cannot connect
> > to the Desktop. Please make sure the DISPLAY
> > environment variable has been set.
> >
> > Thanks.
> >
> > _______________________________________________
> > Orca-list mailing list
> > Orca-list gnome.org
> > http
://mail.gnome.org/mailman/listinfo/orca-list
>
> _______________________________________________
> Orca-list mailing list
> Orca-list gnome.org
> http
://mail.gnome.org/mailman/listinfo/orca-list
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-21 07:49:42 |
Ouch! Willie is right, that was my fault... and that patch
should fix it
Willie Walker wrote:
> Wow! Thanks for finding this. I think it snuck in
with the work to
> allow you to modify your keybindings via the
preferences GUI. Can you
> try the following patch to see if it fixes the problem?
>
> Will
>
> Index: orca_prefs.py
>
============================================================
=======
> RCS file: /cvs/gnome/orca/src/orca/orca_prefs.py,v
> retrieving revision 1.17
> diff -p -u -r1.17 orca_prefs.py
> --- orca_prefs.py 13 Dec 2006 01:21:31 -0000
1.17
> +++ orca_prefs.py 20 Dec 2006 20:51:59 -0000
>  -370,7 +370,7  def readPreferences():
>
> return prefsDict
>
> -def writePreferences(prefsDict, treeModel):
> +def writePreferences(prefsDict, treeModel=None):
> """Creates the directory and files
to hold user preferences. Note
> that callers of this method may want to consider
using an ordered
> dictionary so that the keys are output in a
deterministic order.
>  -437,7 +437,8  def writePreferences(prefsDict, treeMode
> value = prefsDict[key]
> prefs.writelines("orca.settings.%s =
%sn" % (key, value))
>
> - _writeKeyBindingsMap(prefs, treeModel)
> + if treeModel:
> + _writeKeyBindingsMap(prefs, treeModel)
>
> _writePreferencesPostamble(prefs)
> prefs.close()
>
> On Wed, 2006-12-20 at 13:55 -0600, Nolan Darilek wrote:
>
>> Hello. Getting the following when running 'orca -t'
with the latest
>> CVS head. Wondering if anyone else is seeing this,
or if something on
>> my end is out of sync?:
>>
>> ...
>> Enable Braille Monitor? Enter y or n: n
>>
>> Traceback (most recent call last):
>> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
>> orca.py", line 963, in _showPreferencesConsole
>> module.showPreferencesUI()
>> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
>> orca_console_prefs.py", line 361, in
showPreferencesUI
>> logoutNeeded =
orca_prefs.writePreferences(prefsDict)
>> TypeError: writePreferences() takes exactly 2
arguments (1 given)
>>
>> Cannot start Orca because it cannot connect
>> to the Desktop. Please make sure the DISPLAY
>> environment variable has been set.
>>
>> Thanks.
>>
>> ________________________
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
| Orca Traceback when setting up CVS head |

|
2006-12-21 13:20:37 |
No problem, Jorge. BTW, I hope everyone else knows that the
brandy new
keystroke editing page is Jorge's "fault", too. I
think this new
functionality has great utility and it excites me to see the
community
participating in making Orca better.
Thanks Jorge!
Will
On Thu, 2006-12-21 at 08:49 +0100, Jorge Sandin wrote:
> Ouch! Willie is right, that was my fault... and that
patch should fix it
>
> Willie Walker wrote:
> > Wow! Thanks for finding this. I think it snuck
in with the work to
> > allow you to modify your keybindings via the
preferences GUI. Can you
> > try the following patch to see if it fixes the
problem?
> >
> > Will
> >
> > Index: orca_prefs.py
> >
============================================================
=======
> > RCS file: /cvs/gnome/orca/src/orca/orca_prefs.py,v
> > retrieving revision 1.17
> > diff -p -u -r1.17 orca_prefs.py
> > --- orca_prefs.py 13 Dec 2006 01:21:31 -0000
1.17
> > +++ orca_prefs.py 20 Dec 2006 20:51:59 -0000
> >  -370,7 +370,7  def readPreferences():
> >
> > return prefsDict
> >
> > -def writePreferences(prefsDict, treeModel):
> > +def writePreferences(prefsDict, treeModel=None):
> > """Creates the directory and
files to hold user preferences. Note
> > that callers of this method may want to
consider using an ordered
> > dictionary so that the keys are output in a
deterministic order.
> >  -437,7 +437,8  def writePreferences(prefsDict, treeMode
> > value = prefsDict[key]
> >
prefs.writelines("orca.settings.%s = %sn" % (key,
value))
> >
> > - _writeKeyBindingsMap(prefs, treeModel)
> > + if treeModel:
> > + _writeKeyBindingsMap(prefs, treeModel)
> >
> > _writePreferencesPostamble(prefs)
> > prefs.close()
> >
> > On Wed, 2006-12-20 at 13:55 -0600, Nolan Darilek
wrote:
> >
> >> Hello. Getting the following when running
'orca -t' with the latest
> >> CVS head. Wondering if anyone else is seeing
this, or if something on
> >> my end is out of sync?:
> >>
> >> ...
> >> Enable Braille Monitor? Enter y or n: n
> >>
> >> Traceback (most recent call last):
> >> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> >> orca.py", line 963, in
_showPreferencesConsole
> >> module.showPreferencesUI()
> >> File
"/usr/local/stow/orca/lib/python2.4/site-packages/orca/
> >> orca_console_prefs.py", line 361, in
showPreferencesUI
> >> logoutNeeded =
orca_prefs.writePreferences(prefsDict)
> >> TypeError: writePreferences() takes exactly 2
arguments (1 given)
> >>
> >> Cannot start Orca because it cannot connect
> >> to the Desktop. Please make sure the DISPLAY
> >> environment variable has been set.
> >>
> >> Thanks.
> >>
> >> ________________________
>
> _______________________________________________
> Orca-list mailing list
> Orca-list gnome.org
> http
://mail.gnome.org/mailman/listinfo/orca-list
_______________________________________________
Orca-list mailing list
Orca-list gnome.org
http
://mail.gnome.org/mailman/listinfo/orca-list
|
|
[1-6]
|
|