Skip to content
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

No module named 'termios' #25

Open
omkara000 opened this issue Jun 17, 2022 · 2 comments
Open

No module named 'termios' #25

omkara000 opened this issue Jun 17, 2022 · 2 comments

Comments

@omkara000
Copy link

Tried this on windows 7 and it says no module named 'termios'. Capture
Getting the same error while importing in seperate py file. Also cant install via pip when further researched it is found : no distribution available for windows
Capture2

so for the time it is safe to say that this package is only linux supportive?

@afi-dev
Copy link

afi-dev commented Jun 20, 2022

Hi Omkara000,

Windows does not support the pty (pseudo-terminal manipulation tools) of Pyxtermjs, termios and fcntl.

Note :
It is possible to run Pyxtermjs on Windows, however this requires modifying the libraries and the python code of Pyxtermjs. At the moment there is no version of Pyxtermjs for Windows. However, I'm working on it on my PyxtermJS fork named Termsteel. I can't guarantee that the Pyxtermjs project will be around for a long time. I recommend you to use my fork, you will find a more recent version with a nice web interface.

To solve:
Install PyxtermJS on a Linux machine to fix your problem.

If you have no other choice but to use Windows, you can use WSL (requires Windows 10 Version 1903 or later, with Build 18362 or later with a machine supporting virtualization) or install Docker and install a Linux distribution on it

@cs01
Copy link
Owner

cs01 commented Oct 4, 2022

Right now it is only supported on unix-like machines, since that is what the Python standard library supports.

Windows support is technically possible, as node-pty provides this through a single API. https://github.com/Microsoft/node-pty

It does look like there are some 3rd party Python packages that support Windows, for example https://github.com/andfoy/pywinpty may work.

PRs welcome!

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

3 participants