Hi
Still have not managed to make that work. I changed
#!/usr/bin/python3
to:
#!/usr/bin/env python
So python 2.7 is now used instead of python 3. Now I get this error:
Traceback (most recent call last):
File "./test6.py", line 7, in <module>
b.enterTtyMode()
File "brlapi.pyx", line 395, in brlapi.Connection.enterTtyMode
brlapi.OperationError: Can't determine tty number
I am running the code from the GNOME Terminal window. I have not tried
to run it from console yet. Should it work when run from terminal window
or am I missing something?
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: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty