No termios on windows

See original GitHub issue

Hi,

bullet doesn’t work on Windows as there is no termios module. I get the following stack trace when trying to run this example code under CPython 3.7.2 on Windows 10 v1803 Enterprise.

Traceback (most recent call last):
  File "h:\Python\Misc\bullet_test.py", line 1, in <module>
    from bullet import Bullet
  File "C:\Program Files\Python37\lib\site-packages\bullet\__init__.py", line 1, in <module>
    from .client import Bullet
  File "C:\Program Files\Python37\lib\site-packages\bullet\client.py", line 4, in <module>
    from . import utils
  File "C:\Program Files\Python37\lib\site-packages\bullet\utils.py", line 3, in <module>
    import tty, termios
  File "C:\Program Files\Python37\lib\tty.py", line 5, in <module>
    from termios import *
ModuleNotFoundError: No module named 'termios'

Confirmed from the ipython shell directly using the import command.

In [1]: import bullet
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-14022d50bf52> in <module>
----> 1 import bullet

c:\program files\python37\lib\site-packages\bullet\__init__.py in <module>
----> 1 from .client import Bullet

c:\program files\python37\lib\site-packages\bullet\client.py in <module>
      2 from .charDef import *
      3 from . import colors
----> 4 from . import utils
      5 from . import cursor
      6

c:\program files\python37\lib\site-packages\bullet\utils.py in <module>
      1 import os
      2 import sys
----> 3 import tty, termios
      4 import string
      5 from .charDef import *

c:\program files\python37\lib\tty.py in <module>
      3 # Author: Steen Lumholt.
      4
----> 5 from termios import *
      6
      7 __all__ = ["setraw", "setcbreak"]

ModuleNotFoundError: No module named 'termios'

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:13
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
bchao1commented, Feb 26, 2019

Sorry for the issue… As for now, this package works only on linux (I had the “platform” badge specified in the project readme). I will try making this package available on Windows when I have time.

0reactions
tomkccommented, Feb 14, 2022

Any update of this?

This projects is no longer being maintained.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[cli] ModuleNotFoundError: No module named 'termios' on ...
On Windows 10, with python 3.7.9 installed through pyenv-win, lesspass installed with pipx, and MSYS2 bash, I had the following exception: ...
Read more >
Unable to import termios package - python 3.7 - Stack Overflow
Because it requires the termios module, it will work only on Unix. i.e. there is no termios for Windows. Share. Share a link...
Read more >
Python 'termios' Module Not Found (Easy Fix) - Finxter
Note that if you try to import the termios module from Windows, for example, it'll rais the ModuleNotFoundError: No module named 'termios' :....
Read more >
Mock pty / termios on windows tests - Discussions on Python.org
I would like to run the unit tests on my local machine, and I'm trying to use unittest.mock.patch to prevent the import of...
Read more >
how to use python termios module - AlixaProDev
The Python termios module is available only on UNIX and will not work if you are working on windows. This may sometimes give...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found