-
Notifications
You must be signed in to change notification settings - Fork 55
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 cannot be installed on Github Actions runner using latest installer and Python 3.8. #46
Comments
This looks like an interesting edge case with Python 3.8 and Git Bash (or maybe MSYS bash in general?) triggering a bug in venv. See our CI for 3.8 here not using a pipe. Powershell also works very well (and is what is officially documented): https://github.com/python-poetry/install.python-poetry.org/actions/runs/3005610039/jobs/4826098405 I suppose we could probably work around this by using the virtualenv zipapp in this case, but I wonder if it's worth fixing as we do not officially suggest using anything but Powershell on Windows (CMD and Git Bash are not tested and best effort only as you can always use Powershell). We could just consider it a known issue and let it expire with support for 3.8 in 6 months. |
That sound sensible to me! |
I am pretty sure Python 3.8 will be supported for the next 2 years (source). It's Python 3.7 that is EOL in 9 months (not 6). |
From a pure selfish standpoint and because I tend to follow Numpy schedule, it is April 2023:
|
Ah, looks like I got the Numpy schedule in my head. @KelSolaar, could you try reproducing with Python 3.7 just for giggles? |
Good to know it's the same on 3.7 -- we'll probably just declare this a known issue with Python 3.7 & 3.8 + MSYS Bash. |
So, the issue is only present when using the |
That is correct, yes. We haven't drilled down deep enough to figure out if it's truly MSYS bash in general, or just the version shipped by Git ( |
Ideally we would use the official source, but there's an open issue (looks like it might be a wontfix) here python-poetry/install.python-poetry.org#46 that's causing issues for Windows users
Hi 👋 I maintain a Github action for setting up Poetry (this one), and we've had a few reports of broken 3.8 workflows after switching to this installer. I'm fine with this not being fixed, but wanted to ask: would you recommend using the old script from the main Poetry repo for these targets? That's what I'm planning to do, unless you have a better idea? 🙂 |
Ideally we would use the official source, but there's an open issue (looks like it might be a wontfix) here python-poetry/install.python-poetry.org#46 that's causing issues for Windows users
I would need to double-check but I think the main reason for me to open this issue is that the old installer was not working, I updated to the new one which then broke with Python 3.8. |
The action has previously used an older version (https://raw.githubusercontent.com/python-poetry/poetry/48339106eb0d403a3c66519317488c8185844b32/install-poetry.py) which works fine 🙂 |
In theory, it will install Poetry just fine, however, that script is no longer maintained and any changes to the installer are made here, in this repository. The script in Poetry main repo is scheduled for removal python-poetry/poetry#6676 |
We should work just fine with Powershell -- so please use that. If you are experiencing breakage with Python 3.8 and Powershell, that is a different issue from what is tracked here and worth reporting. I would not depend on the old script in the Poetry repo. |
Also, if you really have to use the installer in Git Bash, and the old script works, it's probably worth analyzing why. The original theory here was that it was mostly external to the installer -- but given the old script works, that's evidently incorrect and it's worth figuring out why. |
Ideally we would use the official source, but there's an open issue (looks like it might be a wontfix) here python-poetry/install.python-poetry.org#46 that's causing issues for Windows users
Ideally we would use the official source, but there's an open issue (looks like it might be a wontfix) here python-poetry/install.python-poetry.org#46 that's causing issues for Windows users
From what I can gather, this is the failing call in the installation script, and it fails because This is a bit odd since the I don't have a Windows machine available, so not sure I'm the best to create a fix for this, but the problem seems simple at least 🙂 Any thoughts on this? |
I imagine if python3.exe was added here like python3 is added in the != nt case, it would solve the issue? |
The old script we were using just did |
Looks like a bit of misdiagnosis -- the issues are in the internals of the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Arriving from python-poetry/poetry#3388 I have the same issue when trying to pipe into |
FYI: I came across this while root causing this issue outside of poetry (related is actions/runner-images#2690). The problem is due to python/cpython#25216 . It's possible to workaround this by subclassing |
-vvv
option).Issue
After changing from the old installer process, i.e.
curl -L https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py -o get-poetry.py
to the new installer process, i.e.curl -sSL https://install.python-poetry.org/ | POETRY_HOME=$HOME/.poetry python3 -
, my builds are failing on Github Actions and Python 3.8: Poetry cannot be installed:An exception is raised in the new installer
make
definition:Specifically, the venv._setup_pip definition seems to not find the Python interpreter for the Poetry environment:
I have a repo with a small repro case here: https://github.com/KelSolaar/ActionsRamblings/actions/runs/3071692472/jobs/4962601087
The text was updated successfully, but these errors were encountered: