ModuleNotFoundError: No module named 'cleo' after poetry self:update
See original GitHub issue- 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 (
-vvv
option).
- OS version and name: GNU/Linux 4.18.7-1-default, openSUSE Tumbleweed
- Poetry version: 0.12.4
- Link of a Gist with the contents of your pyproject.toml file: Irrelevant
Issue
I have updated poetry using the command:
$ poetry self:update
Updating to 0.12.4
- Getting dependencies
- Vendorizing dependencies
- Updating poetry
poetry (0.12.4) successfully installed!
Then if run any command I get this:
$ poetry -vvv --version
Traceback (most recent call last):
File "/home/rominf/.local/bin/poetry", line 7, in <module>
from poetry.console import main
File "/home/rominf/.pyenv/versions/3.6.5/envs/pendulum/lib/python3.6/site-packages/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/home/rominf/.pyenv/versions/3.6.5/envs/pendulum/lib/python3.6/site-packages/poetry/console/application.py", line 6, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
I have tried to install cleo
with pip
, but it didn’t help. The only thing that helped me is the poetry
installation using pip
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:42 (6 by maintainers)
Top Results From Across the Web
I am getting no module name cleo when trying to do "poetry add"
I have completely uninstalled and re installed poetry using ...
Read more >Python+Poetry: ModuleNotFoundError: No module named 'cleo'
After I upgraded the python version to 3.10.x, I used poetry to install the python ... Ooops: poetry failed with ModuleNotFoundError: No module...
Read more >I am getting no module name cleo when trying to do "poetry add"
Coding example for the question I am getting no module name cleo when trying to do "poetry add"-django.
Read more >Any fix for poetry post-upgrade to latest stable? : r/ManjaroLinux
After upgrading to the latest stable version, it appears that poetry ... import COMMAND ModuleNotFoundError: No module named 'cleo.events'.
Read more >Poetry not correctly installed on Python 3.9 - Render community
Poetry not correctly installed on Python 3.9 ... Apr 24 04:21:46 PM ModuleNotFoundError: No module named 'cleo' Apr 24 04:21:46 PM ==> Build ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I leave this comment in here because it was the first search result I got: If you are running on Wndows 10 + Python 3.8, then you need to install the preview version that contains a fix for the issue:
Delete the installation removing the
.poetry
folder fromC:\Users\<your user>
Then run this command:
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | POETRY_PREVIEW=1 python
Or, in PowerShell, you can run this:
@PRINCEOYEBOLA since poetry 1.1.12 is missing some dependencies in python3.10.1 on Windows. You may work around by installing them
pip install cleo tomlkit poetry.core requests cachecontrol cachy html5lib pkginfo virtualenv lockfile