-
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
Poetry 1.5 fails to install dependencies #7957
Comments
obviously poetry 1.5.0 works fine for lots of us (including the pipelines). You've provided no means to reproduce what you are seeing. This is unactionable. |
I was able to recreate it with a very simple pyproject.toml file
The error I am seeing after adding verbose is
The reason for this is probably due to the fact I don't have |
so far as I know this hasn't changed, poetry has always assumed that there's a |
I'd add that if you have a repro with a dockerfile, please share it. No need to keep dribbling out the clues, just show us! |
Same issue here with the |
sharing a way to reproduce this would be more useful than announcing that you are hitting it, please |
(more evidence that this is not new: #6371) |
@dimbleby I have done more investigating. I believe this error only happens when following environment variable is set: POETRY_VIRTUALENVS_IN_PROJECT=true Here is a pyproject.toml file I have used:
With the following Dockerfile
Please run the following command (I am running it on mac):
What you should see that the instructions in the file which operate on Poetry version 1.4.2 passes correctly. However, when you reach the last command in the Dockerfile which uses 1.5 that should fail with the error I provided before. Hope this helps to understand the root cause. |
thanks! |
Same issue on using macOS.
Found downgrade to 1.4.2 makes everything works again Note. I have |
I have a problem when using poetry 1.5 and python3.11 too. (Doesn't happen with poetry 1.4 or with python 3.8 env) It seems that poetry uses python3.8 for a reason I can't understand.
|
Same here, would be great if the linked fix PR could be accepted and released. |
thanks for the quick fix @radoering ,given how a minor release instantly broke tons of production builds, it might be good to add an update to the blog post, warning users using local environments (which id wager is the majority) to not update to 1.5.0 and wait for 1.5.1. |
I can reproduce with Poetry 1.5.0 on MacOS 13.3.1 M1 (Apple Silicon) with official Python 3.10.11 when Poetry has this configuration:
Even when executing like so: |
I've been struggling with this issue too with I believe the root of the issue is that poetry 1.5.1 installs the packages, for my setup, in the directory Using poetry 1.4.2, the packages are instead installed to |
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) and have included the output below.Issue
When running
Poetry install
with the latest version (1.5) that was just released, I am gettingNo such file or directory 'python'
.The exact same project etc works fine with version 1.4.2.
The text was updated successfully, but these errors were encountered: