0cyn / ktool

pip install k2l | Mach-O + Obj-C analysis TUI / CLI kit and library. Zero compiled deps, runs anywhere with a python interpreter.
MIT License
484 stars 24 forks source link

ModuleNotFoundError: No module named '_curses' #43

Closed Vxer-Lee closed 1 year ago

Vxer-Lee commented 2 years ago

OS: Microsoft Windows 10 x64

An error occurred after running Ktool.

Traceback (most recent call last):
  File "c:\python3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\python3\scripts\ktool.exe\__main__.py", line 4, in <module>
  File "c:\python3\lib\site-packages\ktool\ktool_script.py", line 54, in <module>
    from ktool.window import KToolScreen, external_hard_fault_teardown
  File "c:\python3\lib\site-packages\ktool\window.py", line 31, in <module>
    import curses
  File "c:\python3\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

image

0cyn commented 2 years ago

Install curses on windows with python -m pip install windows-curses. It should work then.

Issue is now tracking a better failure state for this on win.

0cyn commented 1 year ago

Resolved with d57000a916b9043f028bbe06b4974ebb1a147a1d merger of #48