aws / aws/aws-elastic-beanstalk-cli-setup

`eb appversion` gives ERROR: ModuleNotFoundError - No module named '_curses'

Open
#94 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
537
Forks
226
PR merge metrics
No merged PRs in 30d

Description

**1. Please specify the following:**
- OS: [e.g. OS X, Ubuntu, Windows, etc.]: Amazon Linux 2
- Shell (Bash, PowerShell, Zsh, etc.): Bash

- [x] **I have reviewed the troubleshooting tips described [here]() and they do not solve my problem**

**2. Description**
```
$ eb appversion
ERROR: ModuleNotFoundError - No module named '_curses'
$ which python
~/.pyenv/versions/3.7.2/bin/python
$ python
Python 3.7.2 (default, Jul 9 2020, 22:58:11)
[GCC 7.3.1 20180712 (Red Hat 7.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
Traceback (most recent call last):
File "", line 1, in
File "/home/ec2-user/.pyenv/versions/3.7.2/lib/python3.7/curses/__init__.py", line 13, in
from _curses import *
ModuleNotFoundError: No module named '_curses'
>>> quit()
$ /bin/python
Python 2.7.16 (default, Dec 12 2019, 23:58:22)
[GCC 7.3.1 20180712 (Red Hat 7.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
>>> quit()
$ yum list installed|grep curses
ncurses.x86_64 6.0-8.20170212.amzn2.1.3 installed
ncurses-base.noarch 6.0-8.20170212.amzn2.1.3 installed
ncurses-c++-libs.x86_64 6.0-8.20170212.amzn2.1.3 @amzn2-core
ncurses-devel.x86_64 6.0-8.20170212.amzn2.1.3 @amzn2-core
ncurses-libs.x86_64 6.0-8.20170212.amzn2.1.3 installed
```

I have performed the Troubleshooting steps for Amazon Linux and re-run the `bundled_installer` which generated the attached output. [inst.txt](https://github.com/aws/aws-elastic-beanstalk-cli-setup/files/5170627/inst.txt)

I am unfamiliar with python virtual environments but it appears the `.pyenv/versions/3.7.2/bin/python` is not built with `ncurses` support.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the bundled_installer output in inst.txt and reproducing the _curses import failure with the Python 3.7.2 environment used by eb appversion. Done means the installed EB CLI can run eb appversion without the ModuleNotFoundError on Amazon Linux 2.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.