-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
poetry self update issues with new installer #4146
Comments
Note: I manually redacted my username and replaced it with [redacted] for personal reasons. In retrospect I should have just replaced it with "steinj13" since that's roughly equivalent to my github username, but I'm tired and didn't sync it in my head. |
@13steinj I suspect you would have seen this during your installation Lines 428 to 433 in 925429f
Python versions prior to See also: #4040 (comment) |
@abn Perhaps I got that message and didn't notice, odd. Though I fail to understand something here-- the official documentation on the website says the installer you should use is get-poetry.py Running this installer, however, tells you you aren't using the recommended installer and to use install-poetry.py. If I don't want to use the preview version, because I'm not a fan of alpha relesses, which script do I use? Will I then when 1.2.0 releases be able to use Poetry is great software, but upgrading and installing shouldn't be so convoluted. It turns people away from using it in the first place. I don't know the details behind the change in installation script, directory, etc, but currently installing poetry from scratch is a bit of a mess in what one has to do and where one has to go in order to do it. |
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. |
-vvv
option).Issue
Decided to install poetry. No idea if I already had an installation or not (recovered machine from old backup) but
poetry
was not working so I assumed not. Followed instructions on python-poetry.org. During the installation, found that the installation script was out of date. Cancel installation with SIGTERM via Ctrl-C (if this doesn't rollback installation, it should, or at least not leave the system in a broken state).Decided to install via the new install-poetry.py script. Everything seemed dandy. Added poetry to my path as instructed.
Immediately, just in case, I tested
poetry self update
. I got two different results depending on if I was using git-bash or windows powershell.In Powershell, I got this error (shown with -vvv)
On git bash, I received an entirely different error (I'm assuming it was actually the same error, however on top of this some character that you're using to generate the output is causing encoding issues).
So clearly, there's some kind of conflict somewhere, given the mention of a
~/.poetry
directory which doesn't exist. Which means eitherHere's the big problem... I know Python, and this
current = Path(__file__)
implies that current should be the path to the update script in the correct location...but isn't. Which means either__file__
To test this, I manually edited that code to print out
__file__
on error, and, well,Digging around the code, self.home is based on POETRY_PATH. Which means either
POETRY_PATH
should be set during the installation process, but it wasn't.The text was updated successfully, but these errors were encountered: