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

Error during startproject [ ModuleNotFoundError: No module named 'termios' ] #32

Closed
syfqpie opened this issue Apr 14, 2021 · 7 comments · Fixed by #36
Closed

Error during startproject [ ModuleNotFoundError: No module named 'termios' ] #32

syfqpie opened this issue Apr 14, 2021 · 7 comments · Fixed by #36

Comments

@syfqpie
Copy link

syfqpie commented Apr 14, 2021

Hi all.

So I'm trying to generate a project by using
fastapi startproject core --interactive

But this error below pops out of my terminal
Traceback (most recent call last):
File "c:\users\x\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\x\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\x\Documents\Development\Playground\test-fastapi\env\Scripts\fastapi.exe\__main__.py", line 4, in <module>
File "c:\users\x\documents\development\playground\test-fastapi\env\lib\site-packages\manage_fastapi\main.py", line 11, in <module>
from manage_fastapi.helpers import bullet, launch_cli, yes_no
File "c:\users\x\documents\development\playground\test-fastapi\env\lib\site-packages\manage_fastapi\helpers.py", line 4, in <module>
from bullet import Bullet, SlidePrompt, colors
File "c:\users\x\documents\development\playground\test-fastapi\env\lib\site-packages\bullet\__init__.py", line 1, in <module>
from .client import Bullet
File "c:\users\x\documents\development\playground\test-fastapi\env\lib\site-packages\bullet\client.py", line 4, in <module>
from . import utils
File "c:\users\x\documents\development\playground\test-fastapi\env\lib\site-packages\bullet\utils.py", line 3, in <module>
import tty, termios
File "c:\users\x\appdata\local\programs\python\python39\lib\tty.py", line 5, in <module>
from termios import *
ModuleNotFoundError: No module named 'termios'

And I'm running this on Windows 10 machine. I've read somewhere that termios is only unix and not windows. Is this true?

@Kludex
Copy link
Collaborator

Kludex commented Apr 14, 2021

You're right. It looks like bullet doesn't have support for Windows.

@ycd Should we make bullet optional and not use it interactively on Windows?

@ycd
Copy link
Owner

ycd commented Apr 14, 2021

sure, maybe we can stop depending on it and find another cross-platform library someday.

@syfqpie
Copy link
Author

syfqpie commented Apr 20, 2021

So for the time being, this package cannot be used on Windows right?

@frostming
Copy link

frostming commented Apr 29, 2021

There is questionary that is cross-platform, but it depends on prompt-toolkit and will bring a lot of sub-dependencies.

@Kludex
Copy link
Collaborator

Kludex commented Apr 29, 2021

I'm going to check that today. Thanks @frostming :)

@bshea5
Copy link

bshea5 commented Aug 27, 2021

+1 for Windows support if its doable. Would like to check this out in the future. Thanks!

@Kludex
Copy link
Collaborator

Kludex commented Sep 2, 2021

Support for Windows will be available on manage-fastapi 1.1.0 🎉

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

Successfully merging a pull request may close this issue.

5 participants