kitty icon indicating copy to clipboard operation
kitty copied to clipboard

Python error with python 3.8

Open bthiebault opened this issue 7 years ago • 3 comments

Since I updated to python 3.8, my .xsession-errors file contains the following errors:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/bin/../lib/kitty/__main__.py", line 117, in <module>
    main()
  File "/usr/bin/../lib/kitty/__main__.py", line 113, in main
    func(sys.argv[1:])
  File "/usr/bin/../lib/kitty/__main__.py", line 22, in remote_control
    main(args)
  File "/usr/bin/../lib/kitty/kitty/remote_control.py", line 175, in main
    response = do_io(global_opts.to, send, no_response)
  File "/usr/bin/../lib/kitty/kitty/remote_control.py", line 119, in do_io
    with io:
  File "/usr/bin/../lib/kitty/kitty/utils.py", line 371, in __enter__
    self.tty_fd, self.original_termios = open_tty(True)
OSError: [Errno 6] No such device or address

Kitty seems to be working however.

I'm using kitty 0.14.6-2 on Arch Linux

bthiebault avatar Nov 25 '19 21:11 bthiebault

That error indicates you are running kitty @ in a context with no controlling terminal, dont do that.

kovidgoyal avatar Nov 26 '19 01:11 kovidgoyal

Could we provide a more helpful error message?

Luflosi avatar Nov 26 '19 17:11 Luflosi

This should technically never happen, since a controlling tty should be present for all processes, so I dont think it is worth special casing an error message for.

kovidgoyal avatar Nov 27 '19 02:11 kovidgoyal