Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asciinema missing files: ImportError: No module named 'termios'

Tags:

python

pip

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'
like image 463
Mikeumus Avatar asked Apr 08 '14 15:04

Mikeumus


1 Answers

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)

like image 74
Hartmut Pfarr Avatar answered Sep 28 '22 03:09

Hartmut Pfarr