[BRLTTY] brlapi programming examples

Mika Hanhijärvi miksuh at gmail.com
Thu Aug 27 15:22:20 EDT 2020


Hello


I have not checked out yet what is in the brltty logs, but I just tried 
to run that same python code on my other laptop which is also running 
Debian Buster. On that laptop brltty version is 5.6. I got the same 
result so the same problem exists on both laptops and with both brltty 
5.6 and 6.0.



I am using Gnome desktop and I run that python code from terminal 
window. I have tried to disable braille feature in Orca settings but 
that did not make any difference. I will check out brltty logs tomorrow.




Samuel Thibault kirjoitti 25.8.2020 klo 21.15:
> Hello,
>
> Mika Hanhijärvi, le mar. 25 août 2020 20:54:31 +0300, a ecrit:
>> #!/usr/bin/python3
>> import brlapi
>>
>> try:
>>    b = brlapi.Connection()
>>    b.enterTtyMode()
>> If I understand it correctly that should work
> Yes, that's alright.
>
>> but when I run that I get this error:
>>
>> Traceback (most recent call last):
>>    File "./test5.py", line 6, in <module>
>>      b.enterTtyMode()
>>    File "brlapi.pyx", line 446, in brlapi.Connection.enterTtyMode
>> brlapi.OperationError: <exception str() failed>
> That's odd, I tried it in a VM, without problem.
>
> Unfortunately it seems the exception printing got broken.
>
> You can however check the brltty logs, you can raise its verbosity to
> debug and add the server category in /etc/brltty.conf's log-level line.
>
> Samuel
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty


More information about the BRLTTY mailing list