asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
661 stars 56 forks source link

Python 2.7.8 install fails whilst trying to install pipx #173

Closed 0b1kn00b closed 1 year ago

0b1kn00b commented 1 year ago

Provide environment information

OS:
Linux run 6.2.0-32-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Mon Aug 14 10:03:50 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
fish, version 3.6.1

ASDF VERSION:
v0.11.2

ASDF ENVIRONMENT VARIABLES:
ASDF_DATA_DIR=/mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf
ASDF_DIR=/mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/asdf
ASDF_CONFIG_FILE=/mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/i/etc/asdf/.asdfrc

ASDF INSTALLED PLUGINS:
ansible                      https://github.com/Bleacks/asdf-ansible-plugin.git master 8160027
git-chglog                   https://github.com/GoodwayGroup/asdf-git-chglog.git main ef79c13
golang                       https://github.com/kennyp/asdf-golang.git master f006a12
haxe                         https://github.com/asdf-community/asdf-haxe.git master abffef8
just                         https://github.com/ggilmore/asdf-just.git main 9e8e82c
lefthook                     https://github.com/jtzero/asdf-lefthook.git main c22f81c
neko                         https://github.com/asdf-community/asdf-neko.git master 8e6406b
opam                         https://github.com/asdf-community/asdf-opam.git master 5e88c73
please                       https://github.com/jtzero/asdf-please.git main fbf78de
python                       https://github.com/danhper/asdf-python.git master 5e277e2
ruby                         https://github.com/asdf-vm/asdf-ruby.git master 8cb9721
xc                           https://github.com/airtonix/asdf-xc main 0be6019

To Reproduce

asdf install python 2.7.8

Describe the Bug

Tries to install pipx doesn't find python3

 asdf install                                                                   11:44:11
please 16.27.3 is already installed
python-build 2.7.18 /mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf/installs/python/2.7.18
Downloading Python-2.7.18.tar.xz...
-> https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
Installing Python-2.7.18...
patching file configure
patching file configure.ac
patching file setup.py
patching file Mac/Tools/pythonw.c
patching file setup.py
patching file Doc/library/ctypes.rst
patching file Lib/test/test_str.py
patching file Lib/test/test_unicode.py
patching file Modules/_ctypes/_ctypes.c
patching file Modules/_ctypes/callproc.c
patching file Modules/_ctypes/ctypes.h
patching file Modules/_ctypes/callproc.c
patching file setup.py
patching file Mac/Modules/qt/setup.py
patching file setup.py
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named readline
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named bz2
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf/installs/python/2.7.18/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf/installs/python/2.7.18/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
Installing pip from https://bootstrap.pypa.io/pip/2.7/get-pip.py...
Installed Python-2.7.18 to /mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf/installs/python/2.7.18

Installing default python packages...DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pipx
  Downloading pipx-0.15.6.0.tar.gz (340 kB)
     |████████████████████████████████| 340 kB 2.3 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /mnt/dat/i/prj/haxe/pub/ohmrun/ohmrun_workspace/.local/bertha/o/var/asdf/installs/python/2.7.18/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-U1l1Et/pipx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-U1l1Et/pipx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-8BoiNm
         cwd: /tmp/pip-install-U1l1Et/pipx/
    Complete output (1 lines):
    Python 3.6 or later is required. See https://github.com/pipxproject/pipx for installation instructions.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
⋊> ~/i/p/0install_rclone on main ⨯                                                                                11:45:57

Expected Behaviour

Should install python 2