You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure it's a bug or not, but for some reason, poetry lock command can't work if you don't have a project-compatible python version.
Let's say I want to refresh the lockfile on a project (without installing the dependencies), in poetry 1.1.* I could use poetry lock.
This command would work no matter what are the constrains in the pyproject.toml.
(I could run poetry lock on a ~3.9 project while python 3.7 is activated, and vise versa)
But in poetry 1.2.* I get InvalidCurrentPythonVersionError when I try to run poetry lock if I don't use a compatible python version.
Current Python version (3.9.13) is not allowed by the project (~3.7.1).
Please change python executable via the "env use" command.
Is it intended? what are the reasons for that?
I couldn't find anything in the docs or the changelog.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Not sure it's a bug or not, but for some reason,
poetry lockcommand can't work if you don't have a project-compatible python version.Let's say I want to refresh the lockfile on a project (without installing the dependencies), in poetry 1.1.* I could use
poetry lock.This command would work no matter what are the constrains in the
pyproject.toml.(I could run
poetry lockon a~3.9project whilepython 3.7is activated, and vise versa)But in poetry
1.2.*I getInvalidCurrentPythonVersionErrorwhen I try to runpoetry lockif I don't use a compatible python version.Is it intended? what are the reasons for that?
I couldn't find anything in the docs or the changelog.
Beta Was this translation helpful? Give feedback.
All reactions