Domanda

When running asciinema rec, asciinema.exe both from inside C:\Python34\Scripts which is the only place the pip command works in git bash.

$ asciinema.exe
Traceback (most recent call last):
  File "c:\Python34\Scripts\asciinema-script.py", line 9, in <module>
    load_entry_point('asciinema==0.9.8', 'console_scripts', 'asciinema')()
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 353, in load_entry
_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 2302, in load_entr
y_point
    return ep.load()
  File "C:\Python34\lib\site-packages\pkg_resources.py", line 2029, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "C:\Python34\lib\site-packages\asciinema\__main__.py", line 4, in <module
>
    from .commands.builder import get_command
  File "C:\Python34\lib\site-packages\asciinema\commands\builder.py", line 4, in
 <module>
    from .record import RecordCommand
  File "C:\Python34\lib\site-packages\asciinema\commands\record.py", line 4, in
<module>
    from asciinema.recorder import Recorder
  File "C:\Python34\lib\site-packages\asciinema\recorder.py", line 5, in <module
>
    from .pty_recorder import PtyRecorder
  File "C:\Python34\lib\site-packages\asciinema\pty_recorder.py", line 2, in <mo
dule>
    import pty
  File "C:\Python34\lib\pty.py", line 11, in <module>
    import tty
  File "C:\Python34\lib\tty.py", line 5, in <module>
    from termios import *
ImportError: No module named 'termios'
È stato utile?

Soluzione 2

Windows is not supported as it doesn't have pseudo-terminal, select() and other unix capabilities. Installing Cygwin won't help either as it doesn't support UNIX-like pseudo-terminal as well.

Source: Windows not supported at GH-47 & GH-150

See also: What is the Windows equivalent to the capabilities defined in sys/select.h and termios.h


Workarounds

Altri suggerimenti

In the Windows world, termios is available via Cygwin because of the POSIX specification.

Mingw32 does not support termios.

(I've a similar issue with urwid, which depends on termios, too)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top