[BRLTTY] Python bindings connection error
Samuel Thibault
samuel.thibault at ens-lyon.org
Mon Nov 27 09:50:12 EST 2006
Hi,
Peter Parente, le Mon 27 Nov 2006 08:51:20 -0500, a écrit :
> >>>import brlapi
> >>>c = brlapi.Connection()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "brlapi.pyx", line 219, in brlapi.Connection.__init__
> brlapi.ConnectionError: couldn't connect to :0 with key
> /etc/brlapi.key: Connection refused
>
> I checked for /etc/brlapi.key, but it does not exist.
Uh, it should have been created when running make install. Please create
it and just put arbitrary data in it.
http://www.mielke.cc/brltty/doc/Manual-BrlAPI/English/BrlAPI-4.html
should probably mention it. Dave, here is a patch.
You should also look for the brltty logs in /var/log/daemon.log (or
similar), the following has probably shown up:
Unable to load API authorization key from /etc/brlapi.key: No such
for or directory in brlapiserver_loadAuthKey. You may use parameter
auth=none if you don't want any authorization (dangerous)
I.e. you may just run
brltty -A auth=none -b xw -x no
Dave, maybe the default authentication parameter should include
"user:xyz" where xyz is the uid of brltty?
Samuel
-------------- next part --------------
Index: Documents/Manual-BrlAPI/English/BrlAPI.sgml
===================================================================
--- Documents/Manual-BrlAPI/English/BrlAPI.sgml (r?vision 2720)
+++ Documents/Manual-BrlAPI/English/BrlAPI.sgml (copie de travail)
@@ -549,7 +549,8 @@
<p>
<tt/make install/ will install libbrlapi.so in /lib, and include files in
/usr/include/brltty. An authorization key will also typically be set in
-/etc/brlapi.key, but won't be readable by anybody else than root. It is up
+/etc/brlapi.key (if it is not, just create it and put arbitrary data in it), but
+it won't be readable by anybody else than root. It is up
to you to define a group of users who will have the right to read it and hence
be able to connect to the server. For instance, you may want to do:
More information about the BRLTTY
mailing list