mise/Issue/Conflict with PyEnv on Shell Startup
solve #Error - "no precompiled python found for <REPONAME>, force mise to use a version with
mise settings set python.compile falseoriginal error - while running mise/Task/LLM/copy_buffer_bundle
mise run llm:copy_buffer_bundle mise WARN no precompiled python found for codekiln, force mise to use a precompiled version with `mise settings set python.compile false` python-build: definition not found: codekiln mise ERROR ~/Library/Caches/mise/python/pyenv/plugins/python-build/bin/python-build failed python-build: definition not found: codekiln mise ERROR failed to install core:python@codekiln mise ERROR ~/Library/Caches/mise/python/pyenv/plugins/python-build/bin/python-build exited with non-zero status: exit code 2 mise ERROR Run with --verbose or MISE_VERBOSE=1 for more informationresearch #C35S
Root Cause
Immediate Solutions
#Chosen Option C: Configure mise to ignore Pyenv/.python-version files
- Add to
~/.config/mise/config.toml: - toml
[settings] # idiomatic_version_file is true by default, so we only need to specify which tools to disable idiomatic_version_file = true # disable reading of .python-version files while still allowing other version files (e.g. .nvmrc) # see: https://mise.jdx.dev/configuration.html idiomatic_version_file_disable_tools = ['python']- #Observation/My - this technique could also be used to handle similar issues with nvm/.nvmrc
- Add to
Long-term Recommendations
Prevention
other observed behavior -
mise WARN missing: python@codekiln- in directories that use Pyenv/.python-version, upon starting up a new shell,
miseis repeatedly issuing a #Warning
- in directories that use Pyenv/.python-version, upon starting up a new shell,