s3rius / FastAPI-template

Feature rich robust FastAPI template.
MIT License
1.83k stars 161 forks source link

Does this template support Windows? #142

Closed Rashair closed 1 year ago

Rashair commented 1 year ago

I get this error when running on Windows:

 python3 -m fastapi_template
Traceback (most recent call last):
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\site-packages\simple_term_menu.py", line 37, in <module>
    import termios
ModuleNotFoundError: No module named 'termios'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\site-packages\fastapi_template\__main__.py", line 8, in <module>
    from fastapi_template.cli import run_command
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\site-packages\fastapi_template\cli.py", line 1, in <module>
    from fastapi_template.input_model import (
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\site-packages\fastapi_template\input_model.py", line 7, in <module>
    from simple_term_menu import TerminalMenu
  File "C:\pyenv\pyenv-win\versions\3.9.13\lib\site-packages\simple_term_menu.py", line 39, in <module>
    raise NotImplementedError('"{}" is currently not supported.'.format(platform.system())) from e
NotImplementedError: "Windows" is currently not supported.
s3rius commented 1 year ago

Hi. I haven't seen this error before. You can always use CLI flags. Also, I leave this issue open and fix it later.

s3rius commented 1 year ago

I found the problem. I'll fix it this week.

s3rius commented 1 year ago

Sorry for delay. After the PR is merged you can easily use this project on Windows. It's super embarrassing that I haven't tested it on windows platform. But in the next release the problem should go away.

s3rius commented 1 year ago

Now windows support is back! Thank you for pointing this out.

Release 4.0.2 should fix the problem.