-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
In the issue #15799 (now fixed) @konstin and @eabase noticed that certain error messages contain uninterpreted color code tags.
minimal example of reproducing this on FreeBSD (amd64):
uv init rebuild
cd rebuild
uv add cffi
uv sync --verbose
produces:
DEBUG uv 0.8.17 (21a92c163 2025-09-11)
DEBUG Found project root: `/home/tejul/src/rebuild`
DEBUG No workspace root found, using project root
DEBUG Acquired lock for `/home/tejul/src/rebuild`
DEBUG Reading Python requests from version file at `/home/tejul/src/rebuild/.python-version`
DEBUG Using Python request `3.11` from version file at `.python-version`
DEBUG Checking for Python environment at: `.venv`
DEBUG The project environment's Python version satisfies the request: `Python 3.11`
DEBUG Released lock at `/tmp/uv-6ba0532bfdeb457a.lock`
DEBUG Acquired lock for `.venv`
DEBUG Using request timeout of 30s
DEBUG Found static `pyproject.toml` for: rebuild @ file:///home/tejul/src/rebuild
DEBUG No workspace root found, using project root
DEBUG Existing `uv.lock` satisfies workspace requirements
Resolved 3 packages in 0.57ms
DEBUG Using request timeout of 30s
DEBUG Platform tags mismatch for cffi==2.0.0: The distribution is compatible with \x1b[36mFreeBSD\x1b[39m (`\x1b[36mfreebsd_14_2_release_amd64\x1b[39m`), but you're on \x1b[36mFreeBSD\x1b[39m (`\x1b[36mfreebsd_14_2_RELEASE_x86_64\x1b[39m`)
The lines appear with properly interpreted color. The word DEBUG
at the start of the line is cyan (or light blue), but the last line about platform tags mismatch has some uninterpreted color codes later on.
The error about the mismatched platform tags has been fixed in #15799, but the issue with the rogue color codes still remains.
It may be masked by the fix because as far I have seen, this type of message is the only one where it occurs.
Attached is the output of python -m sysconfig
Platform
FreeBSD 14.2-RELEASE amd64
Version
uv 0.8.17 (21a92c1 2025-09-11)
Python version
Python 3.11.13
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working