-
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
Python 2 used, then warned about, for all new installs #3519
Comments
@finswimmer, I would want to vouch for reopening this issue: the related issues mentioned by @sinoroc are indeed related, but do not cover the fact that the recommended way of installing poetry leads to warnings on systems that already support python3.
While #3029, #522 and #3288 are about configuring the used python version and #3184 is about changing the default version (of which most are possible solutions to this issue), this issue is about making sure the recommended way of installing does not lead to warnings on supported systems, irrespective of the solution. Importantly, the solution to this issue should not require configuration using other programs (like |
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. |
The warning presented by the following piece of code appears every time I run Poetry:
poetry/poetry/console/application.py
Lines 50 to 52 in 2aab9bc
However, the Python executable used to run Poetry was set to
python
(the Python 2 command) when I installed it:poetry/get-poetry.py
Line 676 in 2aab9bc
poetry/get-poetry.py
Line 695 in 2aab9bc
This is because I ran
get-poetry.py
usingpython
, as instructed in the docs:poetry/docs/docs/index.md
Lines 24 to 27 in 2aab9bc
It seems like this is the only place that the version of Python is hard-coded, as the only other place the Python executable or version is referenced is
console/commands/self/update.py
(lines 49 and 265–282). Do I just manually change the shebang at the top of$POETRY_HOME/bin/poetry
to read#!/usr/bin/env python3
? Or will this be done for me automatically when Poetry 1.2 is installed?The text was updated successfully, but these errors were encountered: