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
Uh oh!
There was an error while loading. Please reload this page.
-
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:
asdfa CLI tool that can manage multiple language runtime versions on a per-project basis, extendable via plugins +a.
asdf-pythonanasdfplugin to manage python versions on a per-project basis (usespyenvunder the hood) +poetry.I'm running Debian 11 (Bullseye, stable):
My system python is
3.9.2and I've installed3.10.7and3.11.0withasdf.My
poetryconfig is as follows:Now
Python 3.10.7was active when I installedpoetrywith the official installer. My issue is if I set any of the other python versions to be the active versionpoetrycreates 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-projectcd demo-projectasdf local python 3.11.0... this sets the active python toPython 3.11.0poetry installAs you can see the
PathandExecutableare not set within the virtual environment. Also, theValidfield 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.7but it is actually3.11.0as I want. For the system python I'm unsure why it suggests it is3.10.7. I would expect it to be either3.9.2the true system version or3.11.0to 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