Replies: 1 comment
-
Seems to be the same as issue #6893 which I didn't see before. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There have been many similar issues reported so asking here first rather than raising an issue unnecessarily. It is likely a misunderstanding/misuse on my part.
Firstly, I'm using:
asdf
a CLI tool that can manage multiple language runtime versions on a per-project basis, extendable via plugins +a.
asdf-python
anasdf
plugin to manage python versions on a per-project basis (usespyenv
under the hood) +poetry
.I'm running Debian 11 (Bullseye, stable):
My system python is
3.9.2
and I've installed3.10.7
and3.11.0
withasdf
.My
poetry
config is as follows:Now
Python 3.10.7
was active when I installedpoetry
with the official installer. My issue is if I set any of the other python versions to be the active versionpoetry
creates the virtual environment using the active python sincevirtualenvs.prefer-active-python = true
(good) but it does not set the path to the virtual environment nor activate it. See below.Workflow:
poetry new --src demo-project
cd demo-project
asdf local python 3.11.0
... this sets the active python toPython 3.11.0
poetry install
As you can see the
Path
andExecutable
are not set within the virtual environment. Also, theValid
field is missing but perhaps expected if the other fields are not set. The other information is also incorrect. It suggests the python version inside the virtual environment is3.10.7
but it is actually3.11.0
as I want. For the system python I'm unsure why it suggests it is3.10.7
. I would expect it to be either3.9.2
the true system version or3.11.0
to indicate the active python on the system in this case.It does however do this if the active python version is the same as the one used to install
poetry
. From this I take it the system version indicates the currently active version of python on the system.Is this a bug or a misunderstanding/misuse by me?
Thanks for your time and this package.
Beta Was this translation helpful? Give feedback.
All reactions