Repository navigation
mise prune fails with "unknown mise Python installation" when a pypi tool's receipt records the python path through a minor-version symlink #14841
Unanswered
yusuke-koyoshi
asked this question in
Troubleshooting and bug reports
Replies: 1 comment 2 replies
|
I'm experiencing the same issue. Here's a small reproducer script: mise install python@3.14
mise use -g "pypi:cowsay[python=3.14]"
mise prune --dry-run |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
mise pruneaborts withThe receipt names an interpreter that mise itself installed and manages; it just reaches it through the
python/3.14 -> ./3.14.9symlink instead of the concrete directory.Environment
~/.config/mise/config.toml:What is on disk
Three variants of azure-cli 2.91.0 exist; only one has a receipt whose path and identity disagree:
2.91.0~uv~09bfef915c00338a(active,mise where)installs/python/3.14.9/bin/pythoncore:python:3.14.9:…/installs/python/3.14.92.91.0~uv~cbc21b38cc59d04ainstalls/python/3.14/bin/pythoncore:python:3.14.9:…/installs/python/3.14.92.91.0~uv~2de5f84a7d4675f3installs/python/3.14.6/bin/pythoncore:python:3.14.6:…/installs/python/3.14.6installs/python/3.14is mise's own minor-version symlink to./3.14.9.Cause (from reading v2026.10.17, unchanged on main)
tv.uv_python(src/backend/pipx.rs:899). Its path comes frombackend.which(..., "python")/which_bin_spawnable(..., "python")(src/backend/pipx/lock.rs:216,:308), which can return the path through the3.14symlink, while the identity is built from the resolved version (3.14.9).prune(src/toolset/mod.rs:1440-1453) takes the version from the identity, buildsinstalls/python/3.14.9, and checkspython.starts_with(&legacy_dir).Path::starts_withcompares components without resolving symlinks, sopython/3.14/bin/pythondoes not match and the whole prune bails. The runtime path at the end of the identity (_runtime_identity) is ignored.Reproduction
I could not pin down which command path writes the symlinked form. The
cbc21b38…variant was created bymise install azure-cliright after addingpython = "3.14"to the tool's options;09bfef91…, created a few minutes later duringmise upgrade python, recorded the concrete path. Rewriting the first element of thecbc21b38…receipt toinstalls/python/3.14.9/bin/pythonmakesmise prunesucceed.Possible fixes
prune, canonicalizepython(or use the runtime path from the identity) before thestarts_withcheck.Related: #14479 (per-tool Python for pypi tools), #14787 (lockfile drops the selected Python).
All reactions