Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Grinkers
Copy link
Owner

@Grinkers Grinkers commented Jul 8, 2025

WIP scratch pad to investigate
ankitects/anki#4074
ankitects/anki#4162

@Grinkers
Copy link
Owner Author

Grinkers commented Jul 8, 2025

@zanieb also added you to this fork, feel free to push any tests or other wip things.

uv/ankirepro (ankirepro) [2]> ./repro.sh
   Compiling uv-cli v0.0.1 (/home/grinkers/code/uv/crates/uv-cli)
   Compiling uv v0.7.19 (/home/grinkers/code/uv/crates/uv)
   Compiling uv-dev v0.0.1 (/home/grinkers/code/uv/crates/uv-dev)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.99s
DEBUG uv 0.7.19 (6ca8c1157 2025-07-08)
DEBUG Found project root: `/home/grinkers/code/uv/ankirepro`
TRACE Found `pyproject.toml` at: `/home/grinkers/code/uv/pyproject.toml`
DEBUG Project is contained in non-workspace project: `/home/grinkers/code/uv`
DEBUG No workspace root found, using project root
TRACE Checking lock for `/home/grinkers/code/uv/ankirepro` at `/tmp/uv-823c7b0e73da3e08.lock`
DEBUG Acquired lock for `/home/grinkers/code/uv/ankirepro`
DEBUG Using Python request `3.13.5` from explicit request
DEBUG Checking for Python environment at `.venv`
DEBUG Searching for Python 3.13.5 in managed installations
DEBUG Searching for managed installations at `python`
TRACE Found `ld` path: /lib64/ld-linux-x86-64.so.2
TRACE stdout output from `ld`: ""
TRACE stderr output from `ld`: "/lib64/ld-linux-x86-64.so.2: missing program name\nTry '/lib64/ld-linux-x86-64.so.2 --help' for more information.\n"
TRACE Tried to find musl version by running `"/lib64/ld-linux-x86-64.so.2"`, but failed: Could not find musl version in output of: `/lib64/ld-linux-x86-64.so.2`
TRACE Tried to find libc version from possible symlink at "/lib64/ld-linux-x86-64.so.2", but failed: Failed to determine libc
TRACE stdout output from `ld.so --version`: "ld.so (GNU libc) stable release version 2.41.\nCopyright (C) 2025 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.41 in stdout of ld.so version
DEBUG Released lock at `/tmp/uv-823c7b0e73da3e08.lock`
error: No interpreter found for Python 3.13.5 in managed installations

@Grinkers Grinkers closed this Jul 8, 2025
zanieb added a commit to astral-sh/uv that referenced this pull request Jul 9, 2025
# Description
Several users, myself included, had some issues with Anki (recently
migrated to uv).

https://forums.ankiweb.net/t/bug-anki-25-07-fails-to-launch-on-linux/63475

zanieb came in and gave us pointers, including looking at our uv logs. 
ankitects/anki#4074 (comment)
log: Grinkers#1 (comment)

The actual issue was that I had a system config in /etc/uv/uv.toml but
uv wasn't giving useful feedback for its combining/unification.

A higher level issue is that there's nice logs, however logging is
initialized after! We want to log files read, but need to read the files
to know what log level to use.

https://github.com/astral-sh/uv/blob/7e48292fac968b015c4521e193b09e27af1d5c7b/crates/uv-settings/src/lib.rs#L68

https://github.com/astral-sh/uv/blob/7e48292fac968b015c4521e193b09e27af1d5c7b/crates/uv/src/lib.rs#L354

zanieb mentioned there's #13123,
so consider this a +1 to that.

## Result
The end of the output will be:
```
DEBUG Downloads disabled. Skipping...
DEBUG Released lock at `/tmp/uv-823c7b0e73da3e08.lock`
error: No interpreter found for Python 3.13.5 in managed installations
```

Sorry for the minuscule sized PR. Feel free to close if there's a bigger
logging pass.

---------

Co-authored-by: Zanie Blue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants