Skip to content

ModuleNotFoundError: No module named 'cleo' #2991

@thoward27

Description

@thoward27
  • Docker: python 3.8.5
  • poetry 1.0.5

Issue

All of a sudden I'm seeing failures while trying to use poetry. Dockerfiles have not changed, but they're suddenly unable to build.

Example Dockerfile:

from python:3.8.5
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/1.0.5/get-poetry.py | python > /dev/null
ENV PATH="/root/.poetry/bin:$PATH"
RUN poetry config -vvv virtualenvs.create false

Resulting error:

 > [3/3] RUN poetry config -vvv virtualenvs.create false:                                                                                                                                
#6 0.261 Traceback (most recent call last):                                                                                                                                              
#6 0.261   File "/root/.poetry/bin/poetry", line 12, in <module>                                                                                                                         
#6 0.261     from poetry.console import main                                                                                                                                             
#6 0.261   File "/root/.poetry/lib/poetry/console/__init__.py", line 1, in <module>                                                                                                      
#6 0.261     from .application import Application
#6 0.261   File "/root/.poetry/lib/poetry/console/application.py", line 3, in <module>
#6 0.261     from cleo import Application as BaseApplication
#6 0.261 ModuleNotFoundError: No module named 'cleo'

I'm seeing this same error across repositories, versions of python, and even different computers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docs/faqFrequently duplicated/potential addition to FAQkind/questionUser questions (candidates for conversion to discussion)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions