-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unexpected Python version used #1888
Comments
Hello @pikeas, poetry takes the python version that is available when running fin swimmer |
The issue seems to go a bit deeper than that. With Poetry installed via pipx into Python 3.8.1, a Poetry-managed project running under Python 2.7 displays a warning on every invocation. [tool.poetry]
name = "foo"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^2.7"
[tool.poetry.dev-dependencies]
pylint = "1.9.5"
yapf = "^0.29.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
The virtualenv appears to be functional, the warning doesn't seem accurate, and the debug output for the virtualenv is incorrect.
Is this what causes the unsupported version warning? Why is Poetry validating its active Python against the project's Python? |
Poetry used to use the correct version of Python as specified by |
Setting |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: macOS 10.15.2
Poetry version: 1.0.2
Issue
I manage Python versions with asdf and Poetry with pipx. I expected Poetry to symlink my default Python (the one from asdf), instead it used the one from poetry's environment.
There have been some other issues regarding how Poetry chooses which Python to use. The above behavior seems either incorrect, in which case this is a bug, or counterintuitive, in which case perhaps the docs for
poetry new
could describe how the Python executable is chosen?The text was updated successfully, but these errors were encountered: