Skip to content

Navigation Menu

Sign in
Sign up

Cannot install Python 3.8.20 on M1 Mac (3.8.10, 3.7.17 fail too) with too long filename #202

Open

Description

Provide environment information

❯ asdf info
OS:
Darwin Richards-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64
SHELL:
zsh 5.9 (arm64-apple-darwin24.0)
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
0.16.5
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/richardjonas/.asdf
ASDF_CONFIG_FILE=/Users/richardjonas/.asdfrc
ASDF INSTALLED PLUGINS:
elixir https://github.com/asdf-vm/asdf-elixir.git a4c42e10a7681afd4c87da144e9667865d5034c6
erlang https://github.com/asdf-vm/asdf-erlang.git ef8f04bb71a42a3168c6df6bddf4fad842716c23
python https://github.com/danhper/asdf-python.git c9dc75361d5acf24928b80026a55dbc18005ebf3
ruby https://github.com/asdf-vm/asdf-ruby.git 1079019f23fec224a3a211431b2c7229e92f31e4

To Reproduce

asdf install python 3.8.20

Describe the Bug

❯ asdf install python 3.8.20
python-build 3.8.20 /Users/richardjonas/.asdf/installs/python/3.8.20
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.20.tar.xz...
-> https://www.python.org/ftp/python/3.8.20/Python-3.8.20.tar.xz
Installing Python-3.8.20...
python-build: use readline from homebrew
python-build: use ncurses from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 15.3.2 using python-build 2.5.3-2-g2f4bdcdb)
Inspect or clean up the working tree at /var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767
Results logged to /var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767.log
Last 10 log lines:
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 209, in _main
 return _bootstrap(
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 128, in _bootstrap
 return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 37, in _run_pip
 return subprocess.run(cmd, check=True).returncode
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/subprocess.py", line 516, in run
 raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/python.exe', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw/setuptools-56.0.0-py3-none-any.whl\', \'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw/pip-23.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw\', \'--root\', \'/\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [install] Error 1
error installing version: failed to run install callback: exit status 1

And the log file contains:

...
Looking in links: /var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw
Processing /private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw/setuptools-56.0.0-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 63] File name too long: '/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/pip-build-tracker-yjs9dwsm/970ab4a91190a780ea68788705471652b3bf2a4a04184f0e19c07bc70000000000000000000000000000000000000000000000000000000000000000000000006200142dff92ca8f584bc10201000000f0c8c40201000000c8e1740501000000c0a71e04010000008049a66d010000004cb89e0201000000d0e174050100000000000000000000008049a66d01000000802da202010000000100000000000000c8e1740501000000c0a71e04010000000000000000000000c075e03901000000904aa66d01000000d049a66d0100000074c8aa02010000000000000000000000d0e174050100000030a3610401000000d0aa260501000000a10000000000000032a361040100000040e074050100000020a3610401000000404ba66d010000003c96aa0201000000204aa66d010000003847b00201000000204aa66d010000004449b00201000000a0d3740501000000b0914604010000000091160401000000e04046040100000000000000ffffffffa8e17405010000000000000000000000c0e1740501000000ffffffff00000000e0122d0401000000000000000000000020a3610401000000c075e0390100000024a0a202010000005863c00201000000e040460401000000c04aa66d010000003847b00201000000d0e1740501000000c0a71e0401000000005d46020100000007000000000000005863c00201000000e040460401000000f04aa66d010000004449b002010000006200142dff92ca8f80db17040100000000000000000000000100000000000000c075e03901000000f0c8c40201000000d83d760501000000e83d7605010000000200000000000000f0c8c40201000000f03d760501000000000000000000000040e0740501000000c075e03901000000804ba66d010000008c259e020100000002000000000000'
Traceback (most recent call last):
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/runpy.py", line 194, in _run_module_as_main
 return _run_code(code, main_globals, None,
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/runpy.py", line 87, in _run_code
 exec(code, run_globals)
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__main__.py", line 5, in <module>
 sys.exit(ensurepip._main())
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 209, in _main
 return _bootstrap(
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 128, in _bootstrap
 return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/ensurepip/__init__.py", line 37, in _run_pip
 return subprocess.run(cmd, check=True).returncode
 File "/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/Lib/subprocess.py", line 516, in run
 raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/private/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/python-build.20250314171603.6767/Python-3.8.20/python.exe', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw/setuptools-56.0.0-py3-none-any.whl\', \'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw/pip-23.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/var/folders/ht/0brx8__s06gfg0_07r6wljx80000gn/T/tmpmwa4k7mw\', \'--root\', \'/\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [install] Error 1

But why I see python.exe on a Mac OS build? Not sure... maybe it is a noise.

Expected Behaviour

A successful install

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /