Skip to content

uv run fails to run binaries from ~/Library/Application Support on macOS #9348

@gusutabopb

Description

@gusutabopb

When executing uv run, a list of available commands is shown. python and python3 work fine, but other commands list do not. I don't think uv should be shipping with pip, etc so the provided command list seems wrong.

I tried using different Python version (e.g. -p 3.12) but the results were the same.

Listing commands

> ~> uv -v run
DEBUG uv 0.5.4 (c62c83c37 2024-11-20)
DEBUG No project found; searching for Python interpreter
DEBUG Searching for default Python interpreter in virtual environments or managed installations
DEBUG Searching for managed installations at `Library/Application Support/uv/python`
DEBUG Found managed installation `cpython-3.13.0-macos-aarch64-none`
DEBUG Found `cpython-3.13.0-macos-aarch64-none` at `/Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13` (managed installations)
DEBUG Using Python 3.13.0 interpreter at: /Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
Provide a command or script to invoke with `uv run <command>` or `uv run <script>.py`.

The following commands are available in the environment:

- idle3
- idle3.13
- pip
- pip3
- pip3.13
- pydoc3
- pydoc3.13
- python
- python3
- python3-config
- python3.13
- python3.13-config

See `uv run --help` for more information.

Running python - OK

python3 works as well.

⋊> ~> uv -v run python
DEBUG uv 0.5.4 (c62c83c37 2024-11-20)
DEBUG No project found; searching for Python interpreter
DEBUG Searching for default Python interpreter in virtual environments or managed installations
DEBUG Searching for managed installations at `Library/Application Support/uv/python`
DEBUG Found managed installation `cpython-3.13.0-macos-aarch64-none`
DEBUG Found `cpython-3.13.0-macos-aarch64-none` at `/Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13` (managed installations)
DEBUG Using Python 3.13.0 interpreter at: /Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
DEBUG Running `python`
Python 3.13.0 (main, Oct  7 2024, 23:47:22) [Clang 18.1.8 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Running pydoc3 - FAIL

pip, pip3, idle3, etc fail as well.

⋊> ~> uv -v run pydoc3
DEBUG uv 0.5.4 (c62c83c37 2024-11-20)
DEBUG No project found; searching for Python interpreter
DEBUG Searching for default Python interpreter in virtual environments or managed installations
DEBUG Searching for managed installations at `Library/Application Support/uv/python`
DEBUG Found managed installation `cpython-3.13.0-macos-aarch64-none`
DEBUG Found `cpython-3.13.0-macos-aarch64-none` at `/Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13` (managed installations)
DEBUG Using Python 3.13.0 interpreter at: /Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
DEBUG Running `pydoc3`
/Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/pydoc3: line 2: /Users/gustavo/Library
Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13: No such file or directory
/Users/gustavo/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/pydoc3: line 2: exec: /Users/gustavo/Library
Support/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13: cannot execute: No such file or directory
DEBUG Command exited with code: 126

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingexternalThe problem is with another package or dependency (not uv)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions