python-poetry / python-poetry/poetry
Canceling poetry update leaves you with poetry not callable.
Open
Nobody has claimed this yet.
kind/bug
kind/enhancement
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
$ poetry self update
Updating to 1.0.3
- Downloading poetry-1.0.3-linux.tar.gz 2%^C
$ poetry self update
Traceback (most recent call last):
File "/home/user/.poetry/bin/poetry", line 12, in <module>
from poetry.console import main
ModuleNotFoundError: No module named 'poetry'
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name:
- Poetry version:
- Link of a Gist with the contents of your pyproject.toml file:
Issue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the poetry self update command, then inspect the self-update entry point and how cancellation replaces the installed Poetry files. Done means interrupting an update no longer leaves the poetry command unable to import its package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100