asdf-community / asdf-community/asdf-python

Debian dependencies

Open
#175 1 comment 9 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
729
Forks
65
PR merge metrics
No merged PRs in 30d

Description

### Provide environment information

```
OS:
Linux REDACTED 5.10.0-9-686-pae #1 SMP Debian 5.10.70-1 (2021-09-30) i686 GNU/Linux

SHELL:
GNU bash, version 5.1.4(1)-release (i686-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.1.4(1)-release

ASDF VERSION:
v0.13.1-0586b37

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/REDACTED/.asdf
ASDF_DIR=/home/REDACTED/.asdf
ASDF_CONFIG_FILE=/home/REDACTED/.asdfrc

ASDF INSTALLED PLUGINS:
python https://github.com/danhper/asdf-python.git master 5e277e2
```

### To Reproduce

`asdf install python 3.11.5`

### Describe the Bug

```
Installing Python-3.11.5...

Traceback (most recent call last):
File "", line 1, in
File "/home/REDACTED/.asdf/installs/python/3.11.5/lib/python3.11/bz2.py", line 17, in
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
Traceback (most recent call last):
File "", line 1, in
File "/home/REDACTED/.asdf/installs/python/3.11.5/lib/python3.11/curses/__init__.py", line 13, in
from _curses import *
ModuleNotFoundError: No module named '_curses'
WARNING: The Python curses extension was not compiled. Missing the ncurses lib?
Traceback (most recent call last):
File "", line 1, in
File "/home/REDACTED/.asdf/installs/python/3.11.5/lib/python3.11/ctypes/__init__.py", line 8, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
WARNING: The Python ctypes extension was not compiled. Missing the libffi lib?
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'readline'
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
Traceback (most recent call last):
File "", line 1, in
File "/home/REDACTED/.asdf/installs/python/3.11.5/lib/python3.11/ssl.py", line 100, in
import _ssl # if we can't import it, let the error propagate
^^^^^^^^^^^
ModuleNotFoundError: No module named '_ssl'
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems

BUILD FAILED (Debian 11 using python-build 2.3.27-5-gf7f09650)

```

### Expected Behaviour

Installed Python-3.11.5 to /home/REDACTED/.asdf/installs/python/3.11.5

I had to perform `sudo apt-get install libssl-dev libffi-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev liblzma-dev` in order to fix this issue. **These system dependencies should be listed in the README**.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the README, using the issue's apt-get command and failed Python extension messages as the source. Document the listed Debian development dependencies needed by asdf install python, and consider the work done when a Debian user can find these prerequisites before attempting the install.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, debian, python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.