ModuleNotFoundError: No module named '_curses'
See original GitHub issueHello,first a thanks for actively maintaining a incredible project like this. I am compiling a python script using curses module,the exe is being built inside the dist folder but when ever i run the executable i get this error:
$ Anfu.exe
Traceback (most recent call last):
File "C:\Users\ADMINI~1\Desktop\PROGRA~1\Anfu\ANFU~1.DIS\Anfu.py", line 26, in <module>
File "C:\Users\ADMINI~1\Desktop\PROGRA~1\Anfu\ANFU~1.DIS\curses\__init__.py", line 13, in <module>
ModuleNotFoundError: No module named '_curses'
the script itself is running fine whenever i run it with python interpreter.i have tried on both windows 7 and 10 but no luck. python version(i also tried with python 3.9 but same problem):
$ python --version
Python 3.8.3
nuitka version:
$ python -m nuitka --version
0.6.15
Python: 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (A
MD64)]
Executable: C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python
.exe
OS: Windows
Arch: x86_64
command i am using to compile the file:
python -m nuitka --plugin-enable=tk-inter --standalone Anfu.py
Link to repo i am compiling: here i am also compiling my other projects like this one,and all other projects are compiling fine.the problem seems to occur only with scripts having curses module .does nuitka support curses,is there a workout for this cuz i really want to compile my script with nuitka for its promising speed.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Thanks for your report, a fix for this is on the factory branch and will become part of the next hotfix.
https://nuitka.net/doc/factory.html
Part of the current hotfix 0.6.17.4 release.