Skip to content

uv -vv outputs ANSI escape sequences #19307

@injust

Description

@injust

Summary

I ran uv sync -vv on a pretty fresh EC2 instance. It outputs ANSI escape sequences instead of highlighting the "hint:" output. This doesn't happen at lower verbosity levels.

$ uv sync -vv
DEBUG uv 0.10.2
TRACE Checking lock for `/home/ec2-user/.cache/uv` at `/home/ec2-user/.cache/uv/.lock`
DEBUG Acquired shared lock for `/home/ec2-user/.cache/uv`
DEBUG Found project root: `/home/ec2-user/code/scripts`
DEBUG No workspace root found, using project root
TRACE Checking lock for `/home/ec2-user/code/scripts` at `/tmp/uv-cb0f83fbbb4c4b4d.lock`
DEBUG Acquired exclusive lock for `/home/ec2-user/code/scripts`
DEBUG No Python version file found in workspace: /home/ec2-user/code/scripts
DEBUG Using Python request `>=3.14` from `requires-python` metadata
DEBUG Checking for Python environment at: `.venv`
DEBUG Using request connect timeout of 10s and read timeout of 30s
DEBUG Searching for Python >=3.14 in managed installations
DEBUG Searching for managed installations at `/home/ec2-user/.local/share/uv/python`
TRACE Found `ld` path: /lib/ld-linux-aarch64.so.1
TRACE stdout output from `ld`: ""
TRACE stderr output from `ld`: "/lib/ld-linux-aarch64.so.1: missing program name\nTry '/lib/ld-linux-aarch64.so.1 --help' for more information.\n"
TRACE Tried to find musl version by running `"/lib/ld-linux-aarch64.so.1"`, but failed: Could not find musl version in output of: `/lib/ld-linux-aarch64.so.1`
TRACE Tried to find libc version from possible symlink at "/lib/ld-linux-aarch64.so.1", but failed: Failed to determine libc
TRACE stdout output from `ld.so --version`: "ld.so (GNU libc) stable release version 2.34.\nCopyright (C) 2021 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE.\n"
TRACE Found manylinux 2.34 in stdout of ld.so version
TRACE Found `ld` path: /lib/ld-linux-aarch64.so.1
TRACE stdout output from `ld`: ""
TRACE stderr output from `ld`: "/lib/ld-linux-aarch64.so.1: missing program name\nTry '/lib/ld-linux-aarch64.so.1 --help' for more information.\n"
TRACE Tried to find musl version by running `"/lib/ld-linux-aarch64.so.1"`, but failed: Could not find musl version in output of: `/lib/ld-linux-aarch64.so.1`
TRACE Tried to find libc version from possible symlink at "/lib/ld-linux-aarch64.so.1", but failed: Failed to determine libc
TRACE stdout output from `ld.so --version`: "ld.so (GNU libc) stable release version 2.34.\nCopyright (C) 2021 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE.\n"
TRACE Found manylinux 2.34 in stdout of ld.so version
DEBUG Released lock at `/tmp/uv-cb0f83fbbb4c4b4d.lock`
DEBUG Released lock at `/home/ec2-user/.cache/uv/.lock`
TRACE Error trace: No interpreter found for Python >=3.14 in managed installations

\x1b[36m\x1b[1mhint\x1b[0m\x1b[39m\x1b[1m:\x1b[0m A managed Python download is available for Python >=3.14, but Python downloads are set to 'manual', use `uv python install >=3.14` to install the required version
error: No interpreter found for Python >=3.14 in managed installations

ascii.cast.json

Platform

Amazon Linux 2023 aarch64

Version

uv 0.10.2

Python version

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions