-
-
Notifications
You must be signed in to change notification settings - Fork 465
Python virtual env is in wrong order in PATH for nested configs #4515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've had a similare and probably related issue ✋ First a gentle intro with the venv path order bug :
Another one demoing a local
This might also be related to an alias I use that changed a flag in a wrong or overly-wide way? lbt-pv='f(){ mise use "python@$1" ; mise config set env._.python.venv.path .venv ; mise config set --type bool env._.python.venv.create true ; mise exec -- which python ; mise exec -- python --version ; unset -f f; }; f' I know my investigation hasen't |
Also, just found you can't have virtualenv path defined in both env AND tools..: [settings]
python_compile = true
experimental = true
[env]
_.python.venv = { path = ".venv2", create = true }
[tools]
python = { version = '3.13.2', virtualenv = '.venv2' } This doesn't seem to unset PATH properly when using |
Discussed in #4510
Originally posted by fredriv February 24, 2025
We're migrating to
mise
+uv
to replaceasdf
+direnv
.We have a repository where various subdirectories have their own Python virtual environment. However, when setting this up in
mise
, the virtual environments end up in the wrong order inPATH
. This seems similar to the issue reported in #4361?In
~/tmp/base/mise.toml
:In
~/tmp/base/override/mise.toml
:When entering
~/tmp/base/override
I would expect to get Python 3.13 but I'm still getting the version specified in thebase
config:This is the start of the
PATH
variable:I would expect the two entries to be in the reverse order, with my current directory's virtual environment at the start.
Output of
mise doctor
:The text was updated successfully, but these errors were encountered: