question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:42 (6 by maintainers)

github_iconTop GitHub Comments

42reactions
crgarcia12commented, Nov 18, 2019

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 from C:\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:

Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py -OutFile get-poetry.py
python .\get-poetry.py --preview
Remove-Item .\get-poetry.py
$env:Path += ";$env:USERPROFILE\.poetry\bin"
41reactions
hoishingcommented, Dec 15, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found