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

Mitype complains about missing _curses module on Windows #65

Closed
Vinzent03 opened this issue Oct 29, 2020 · 2 comments
Closed

Mitype complains about missing _curses module on Windows #65

Vinzent03 opened this issue Oct 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@Vinzent03
Copy link

Subject of the issue

When I start mitype with mitype in cmd on windows I get the error ModuleNotFoundError: No module named '_curses' In some research I found out, that curses is not really supported on windows. To fix this problem I had to runpip install windows-curses. I think that should be documentated.

Your environment

  • windows
  • mitype: 0.2.0
  • python: 3.8.5
  • terminal: windows terminal

Steps to reproduce

after a fresh installation of mitype run mitype on windows

Expected behaviour

It should be able to start.

Actual behaviour

PS C:\Users\user> mitype
Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\user\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\Scripts\mitype.exe\__main__.py", line 4, in <module>
  File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\mitype\app.py", line 3, in <module>
    import curses
  File "c:\users\user\appdata\local\programs\python\python38-32\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

Your proposed fix (if any)

run pip install windows-curses

@Vinzent03 Vinzent03 added the bug Something isn't working label Oct 29, 2020
@Mithil467
Copy link
Owner

Hey @Vinzent03 👋

This was documented earlier, but PR #45 was merged to make it such that this dependency is automatically resolved on windows. So for upcoming releases this is supposed to work out of the box. Although, I see that currently there is no way for users to know that they need windows_curses for mitype v0.2.0 and lesser.

v0.2.1 will be out very soon, and users won't face this issue any more.

I have added this information in BUILD.md so that windows users do not face any difficulty while running mitype directly from source.

Thank you very much for pointing it out, I really appreciate the trouble taken to find the cause and filing an issue. 🙌🏼

@Mithil467 Mithil467 changed the title can't start mitype on windows Mitype complains about missing _curses module on Windows Oct 29, 2020
@Mithil467 Mithil467 pinned this issue Oct 29, 2020
@Vinzent03
Copy link
Author

Thank you much for the fast response. To add it to BUILD.md is a good idea, that should make it clearer. Glad to see what's else in the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants