ModuleNotFoundError: No module named '_curses'
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
ubuntu 22.04, python 3.8.9
pip installed chalice
typing chalice and now i get
ModuleNotFoundError: No module named '_curses'
File "/home/ec2-user/.local/bin/chalice", line 5, in
from chalice.cli import main
File "/home/ec2-user/.local/lib/python3.8/site-packages/chalice/cli/__init__.py", line 39, in
from chalice.cli import newproj
File "/home/ec2-user/.local/lib/python3.8/site-packages/chalice/cli/newproj.py", line 37, in
import inquirer
File "/home/ec2-user/.local/lib/python3.8/site-packages/inquirer/__init__.py", line 1, in
from inquirer.prompt import prompt
File "/home/ec2-user/.local/lib/python3.8/site-packages/inquirer/prompt.py", line 1, in
import inquirer.themes as themes
File "/home/ec2-user/.local/lib/python3.8/site-packages/inquirer/themes.py", line 4, in
from blessed import Terminal
File "/home/ec2-user/.local/lib/python3.8/site-packages/blessed/__init__.py", line 14, in
from blessed.terminal import Terminal # type: ignore
File "/home/ec2-user/.local/lib/python3.8/site-packages/blessed/terminal.py", line 21, in
from .keyboard import (_time_left,
File "/home/ec2-user/.local/lib/python3.8/site-packages/blessed/keyboard.py", line 19, in
import curses
File "/usr/local/lib/python3.8/curses/__init__.py", line 13, in
from _curses import *
ModuleNotFoundError: No module named '_curses'
Contributor guide
Research direction
Reproduce the failure by running the chalice CLI on Ubuntu 22.04 with Python 3.8.9. Trace the import path through chalice/cli/newproj.py and the inquirer and blessed dependencies, starting at the reported _curses import. Done means the behavior in this environment is understood and the issue has a verified resolution or clearly documented outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100