Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: python installation fails on linux mint 22 #1769

Open
nicopicchio opened this issue Jul 27, 2024 · 2 comments
Open

bug: python installation fails on linux mint 22 #1769

nicopicchio opened this issue Jul 27, 2024 · 2 comments
Labels

Comments

@nicopicchio
Copy link

nicopicchio commented Jul 27, 2024

Describe the Bug

asdf fails to install python (v3.12.4) on linux mint 22. The plugin gets added correctly but when it comes to install a version I get an error.

Steps to Reproduce

  1. run asdf plugin add python
  2. run asdf install python latest

Expected Behaviour

python v3.12.4 should have been installed.

Actual Behaviour

I got the following error:

asdf install python latest
python-build 3.12.4 /home/nico/.asdf/installs/python/3.12.4
Downloading Python-3.12.4.tar.xz...
-> https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tar.xz
Installing Python-3.12.4...

BUILD FAILED (Linuxmint 22 using python-build 2.4.8)

Inspect or clean up the working tree at /tmp/python-build.20240727231640.26986
Results logged to /tmp/python-build.20240727231640.26986.log

Last 10 log lines:
  File "/tmp/python-build.20240727231640.26986/Python-3.12.4/Lib/ensurepip/__init__.py", line 200, in _bootstrap
    return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20240727231640.26986/Python-3.12.4/Lib/ensurepip/__init__.py", line 101, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20240727231640.26986/Python-3.12.4/Lib/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/python-build.20240727231640.26986/Python-3.12.4/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmp8w035ccp/pip-24.0-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmp8w035ccp\', \'--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2027: install] Error 1

Environment

OS:
Linux mintpad 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 21:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-ubuntu-linux-gnu)

BASH VERSION:
5.2.21(1)-release

ASDF VERSION:
v0.14.0-ccdd47d

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

ASDF INSTALLED PLUGINS:
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master c5b7c40
python                       https://github.com/danhper/asdf-python.git master 7b0af87

asdf plugins affected (if relevant)

python

@nennogabriel
Copy link

similar error for me in ubuntu 24.04

@RobLoach
Copy link

May want to use the asdf-python issue queue for this https://github.com/asdf-community/asdf-python/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants