Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'cleo' #2991

Closed
thoward27 opened this issue Sep 28, 2020 · 2 comments
Closed

ModuleNotFoundError: No module named 'cleo' #2991

thoward27 opened this issue Sep 28, 2020 · 2 comments
Labels
area/docs/faq Frequently duplicated/potential addition to FAQ kind/question User questions (candidates for conversion to discussion)

Comments

@thoward27
Copy link

  • 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.

@thoward27 thoward27 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 28, 2020
@abn
Copy link
Member

abn commented Sep 28, 2020

@thoward27 I do not think you command does what you intend it to do. I am assuming that you want to install poetry at 1.0.5. For this you have to do.

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

The snippet you provided will try to install 1.1.0rc1 using the get-poetry.py script at 1.0.5. It is recommended that you always use the latest get-poetry.py script. Additionally, unless there is a pressing reason why you need 1.0.5, I'd recommend using the latest stable version.

@abn abn closed this as completed Sep 28, 2020
@abn abn added kind/question User questions (candidates for conversion to discussion) area/docs/faq Frequently duplicated/potential addition to FAQ and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 28, 2020
Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs/faq Frequently duplicated/potential addition to FAQ kind/question User questions (candidates for conversion to discussion)
Projects
None yet
Development

No branches or pull requests

2 participants