question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named '_curses'

See original GitHub issue

Hello,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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Oct 17, 2021

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

0reactions
kayhayencommented, Oct 24, 2021

Part of the current hotfix 0.6.17.4 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error no module named curses - python - Stack Overflow
Got the same error with Python 3.4 on Ubuntu 14.04 and here is how I fixed it. My /usr/local/lib/python3.4/lib-dynload/ directory did not have...
Read more >
ModuleNotFoundError: No module named '_curses' : r/Python
ModuleNotFoundError : No module named '_curses' · Typically, if a module name starts with an underscore, it means that it's actually a native ......
Read more >
Why is that showing "no module named curses in python while ...
Why is that showing "no module named curses in python while coding ... from _curses import * ModuleNotFoundError: No module named '_curses' ...
Read more >
No module named '_curses' · Issue #31 · wustho/epr - GitHub
Unfortunately I can't find any curses module using pip . Is that the exact name? [nemo@Sailfish ~]$ pip install curses Defaulting to user...
Read more >
windows-curses - PyPI
Project description. Adds support for the standard Python curses module on Windows. Based on these wheels. Uses the PDCurses curses implementation. The wheels ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found