-
Notifications
You must be signed in to change notification settings - Fork 56
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
This "Official Installer Script" fails on Windows #146
Comments
I am quite sure that the installer works fine for lots of people: it is likely that whatever problem you are experiencing is something unusual in your local environment. Do leave an update if and when you figure it out, perhaps the next person will benefit. |
eg here it is working fine in CI |
#146 (comment) by https://github.com/dimbleby
And? This is relevant in what way?
The person asked for help and you dismissed them
Well, actually, "I am quite sure that the installer works fine for lots of people," so there will not be a "next person" who needs to benefit from the unusual something that the user will figure out for themselves. |
tldrUsing Python v3.13 is the likely nexus of the problem. Modify the command to (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -3.12 - Chronological troubleshootingAbout a week ago, I ran
(hhSCNet) C:\apps\hhSCNet>poetry
(hhSCNet) C:\apps\hhSCNet>poetry --help
(hhSCNet) C:\apps\hhSCNet>poetry help Today, I uninstalled with Switched to non-admin PS PowerShell 7.4.6
PS C:\Users\hunte> (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
C:\Users\hunte\AppData\Roaming\Python\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.8.5)
Installing Poetry (1.8.5): Creating environment
Installing Poetry (1.8.5): Installing Poetry
Installing Poetry (1.8.5): An error occurred. Removing partial environment.
Poetry installation failed.
See C:\Users\hunte\poetry-installer-error-afrdjhr4.log for error logs. poetry-installer-error-afrdjhr4.log:
PS C:\Users\hunte> pip cache purge
Files removed: 3738
PS C:\Users\hunte> (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
C:\Users\hunte\AppData\Roaming\Python\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.8.5)
Installing Poetry (1.8.5): Creating environment
Installing Poetry (1.8.5): Installing Poetry
Installing Poetry (1.8.5): Creating script
Installing Poetry (1.8.5): Done
Poetry (1.8.5) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`
PS C:\Users\hunte> poetry --version
PS C:\Users\hunte> poetry
PS C:\Users\hunte> poetry --help
PS C:\Users\hunte> poetry help
PS C:\Users\hunte>
(hhSCNet) C:\apps\hhSCNet>py -0
* Active venv
-V:3.13t Python 3.13 (64-bit, freethreaded)
-V:3.13 Python 3.13 (64-bit)
-V:3.12 Python 3.12 (64-bit)
-V:3.11 Python 3.11 (64-bit)
-V:3.10 Python 3.10 (64-bit)
(Because I was in a venv when I ran the command, it isn't clear that my default was 3.13) make %LocalAppData%\py.ini $pyini = @"
[defaults]
python=3.12
"@
$pyini | Out-File "$env:LocalAppData\py.ini" -Encoding ascii C:\Users\hunte>py -0
-V:3.13t Python 3.13 (64-bit, freethreaded)
-V:3.13 Python 3.13 (64-bit)
-V:3.12 * Python 3.12 (64-bit)
-V:3.11 Python 3.11 (64-bit)
-V:3.10 Python 3.10 (64-bit) PowerShell 7.4.6
PS C:\Users\hunte> pip cache purge
Files removed: 231
PS C:\Users\hunte> (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
C:\Users\hunte\AppData\Roaming\Python\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.8.5)
Installing Poetry (1.8.5): Creating environment
Installing Poetry (1.8.5): Installing Poetry
Installing Poetry (1.8.5): Creating script
Installing Poetry (1.8.5): Done
Poetry (1.8.5) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`
PS C:\Users\hunte> poetry --version
Poetry (version 1.8.5) I haven't tried any other command, so maybe it is still broken, but getting a response was major improvement, so I decided to share with y'all. |
My point in noting that the installer works for lots of people is simply that: it generally isn't true that the installer "fails on windows". If the script did generally fail, then anyone could reproduce the problem and offer help: whereas if it fails only on the reporter's computer then only the reporter is positioned to do any debugging. (A second report now puts us somewhere in between.) In an earlier comment I linked to a pipeline succeeding with windows and python 3.13 so the issue is certainly not simply about using python 3.13. I would guess that it's not about that at all; but maybe. I still have little to offer on this one but encouragement: if you figure out what is going on please do leave an update. Perhaps the next person will benefit. |
Installed on an up-to-date vanilla Windows 11 machine with Python 3.13 (symlinks enabled), via the official method recommended right here on the website:
Ok so the installation failed somehow. Calling it explicitly outputs nothing. And it did not bother to add that dir to my USER PATH for me, so it isn't really an "install". Let's add it to the PATH and try again:
No output at all, literally nothing.
Let's try the absolute path, just in case:
Still nothing. What's going on?
The text was updated successfully, but these errors were encountered: