-vvv option).After updating poetry to 1.1.0 with poetry self update, it stopped working. I cannot run even poetry --version now.
$ poetry self update
Updating to 1.1.0
- Downloading poetry-1.1.0-darwin.tar.gz 100%
Poetry (1.1.0) is installed now. Great!
$ poetry
Traceback (most recent call last):
File "/Users/username/.poetry/bin/poetry", line 12, in <module>
from poetry.console import main
File "/Users/username/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/Users/username/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
$ poetry --version
Traceback (most recent call last):
File "/Users/username/.poetry/bin/poetry", line 12, in <module>
from poetry.console import main
File "/Users/username/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/Users/username/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
I searched for an issue but couldn't find one. #2991 was for a different problem.
poetry -vvv generates the following output:
$ poetry -vvv
Traceback (most recent call last):
File "/Users/username/.poetry/bin/poetry", line 12, in <module>
from poetry.console import main
File "/Users/username/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/Users/username/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
I needed to use Poetry soon and re-installed it.
python get-poetry.py --uninstall
python get-poetry.py
The error has gone.
I hope this helps other people.
Same here
I had to do the same thing after adding python 3.9 to my pyenv and update poetry, re-install was the only thing that would do it.
I had the same problem after updating to python 3.9 but the issue went away after "pip install --user poetry". Note that I use python through pyenv.
Most helpful comment
I had to do the same thing after adding python 3.9 to my pyenv and update poetry, re-install was the only thing that would do it.