-
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 self update" requires a pyproject.toml file #9964
Comments
Moreover, running |
This issue also occurs on Windows. |
It seems to me that With freshly installed poetry (using the official installer), I ran these commands:
As you can see it installs project dependencies into poetry virtual environment and vice versa poetry and its dependencies into project virtual environment. |
Hey, I'm not able to reproduce this. How have you installed Poetry? From what version are you trying to update? fin swimmer |
As I mentioned, I used the official installer (i.e. the same method as in the first post).
I ran
|
I tried it in docker with the same behaviour. Here are the steps to reproduce the problem from the first post.
When |
Thanks for the reproducer 👍 I have an idea where to search ... |
Description
When running "poetry self update" in a directory not containing a pyproject.toml file (such as the home directory), poetry quits with "Poetry could not find a pyproject.toml file in /home/srittau or its parents". It seems unnecessary to run self commands from a "real" project directory.
Workarounds
Running the self commands in any existing project directory. This is more difficult on a new system or installing poetry automatically (for example, using Ansible).
Poetry Installation Method
install.python-poetry.org
Operating System
Ubuntu 24.04.1
Poetry Version
Poetry (version 2.0.0)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: