poetry: Poetry 1.5 fails to install dependencies
- Poetry version: 1.5
- Python version: 3.10
- OS version and name: Ubuntu 20.04
- [X ] I am on the latest stable Poetry version, installed using a recommended method.
- [ X] I have searched the issues of this repo and believe that this is not a duplicate.
- [X ] I have consulted the FAQ and blog for any relevant entries or release notes.
- [ X] If an exception occurs when executing a command, I executed it again in debug mode (
-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 getting No such file or directory 'python'
.
The exact same project etc works fine with version 1.4.2.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 10
- Comments: 16 (7 by maintainers)
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.
@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):
docker build -t python -f Dockerfile --no-cache .
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.