Skip to content

MS Windows 10 - asks for termios #978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gwd666 opened this issue Jan 12, 2023 · 4 comments
Closed

MS Windows 10 - asks for termios #978

gwd666 opened this issue Jan 12, 2023 · 4 comments
Milestone

Comments

@gwd666
Copy link

gwd666 commented Jan 12, 2023

Hello,

I was hoping to manage to get bpython to work on WIN 10.
I followed the instructions and pip installed curses-2.2.1+utf8-cp39-cp39-win_amd64.whl module, played around with windows-curses as well, after getting below errors (with same results), and pip installed bpython-0.23 (into a conda env that has python 3.9.13 in it) but whenever I run bpython-curses in Windows CMD prompt (or I also tried the Git Bash prompt as an alternative) I end up with

(wdenv)C:\Users\gwd\OneDrive\Documents\dev>bpython-curses
Traceback (most recent call last):
  File "C:\Users\gwd\.conda\envs\wdenv\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\gwd\.conda\envs\wdenv\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\gwd\.conda\envs\wdenv\Scripts\bpython-curses.exe\__main__.py", line 4, in <module>
  File "C:\Users\gwd\.conda\envs\wdenv\lib\site-packages\bpython\cli.py", line 105, in <module>
    from . import args as bpargs
  File "C:\Users\gwd\.conda\envs\wdenv\lib\site-packages\bpython\args.py", line 35, in <module>
    import curtsies
  File "C:\Users\gwd\.conda\envs\wdenv\lib\site-packages\curtsies\__init__.py", line 4, in <module>
    from .window import FullscreenWindow, CursorAwareWindow
  File "C:\Users\gwd\.conda\envs\wdenv\lib\site-packages\curtsies\window.py", line 30, in <module>
    from .termhelpers import Cbreak
  File "C:\Users\gwd\.conda\envs\wdenv\lib\site-packages\curtsies\termhelpers.py", line 1, in <module>
    import tty
  File "C:\Users\gwd\.conda\envs\wdenv\lib\tty.py", line 5, in <module>
    from termios import *
ModuleNotFoundError: No module named 'termios'

Afaik termios is Linux only, right? My guess was that the curses module would handle that type of call?
What am doing wrong here - any idea?

@Code4SAFrankie
Copy link

I still have this issue. Just installed on python-3.9.10.amd64

@Andrej730
Copy link

Andrej730 commented Mar 9, 2023

@sebastinas
Still have the same issue on python 3.11, windows 11 - tried to install both from pip and from https://github.com/bpython/bpython.git

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Software\Python311\Scripts\bpython.exe\__main__.py", line 4, in <module>
  File "C:\Software\Python311\Lib\site-packages\bpython\curtsies.py", line 10, in <module>
    import curtsies
  File "C:\Software\Python311\Lib\site-packages\curtsies\__init__.py", line 4, in <module>
    from .window import FullscreenWindow, CursorAwareWindow
  File "C:\Software\Python311\Lib\site-packages\curtsies\window.py", line 30, in <module>
    from .termhelpers import Cbreak
  File "C:\Software\Python311\Lib\site-packages\curtsies\termhelpers.py", line 1, in <module>
    import tty
  File "C:\Software\Python311\Lib\tty.py", line 5, in <module>
    from termios import *

@sebastinas
Copy link
Contributor

Try bpython-curses instead.

@Andrej730
Copy link

Installing curses from https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses and running bpython-curses worked, thank you!

@sebastinas sebastinas added this to the release-0.25 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants