-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry is impossible to install on the python docker images. #4865
Comments
The same error occurs with just-
|
Hi @tedivm! I think more detailed reproduction instructions will be needed to understand what you are trying to do. That being said, I did my best to create a simple reproduction and am unable to replicate what you are experiencing: printf "
set -xe
curl -sSL https://install.python-poetry.org | python3 - --git https://github.com/python-poetry/poetry.git@master
export PATH="/root/.local/bin:$PATH"
poetry --version
poetry new foobar
pushd foobar
poetry add pycowsay
poetry run pycowsay 'Hello world!'
" | docker run --rm -i --entrypoint bash python:3.10
Please try this out on your system and let us know if it works! We'll probably move this to a discussion at that point if it proves not to be a bug in poetry. |
Hey there, I'm seeing a very similar issue, and I've been struggling against it for a couple days now. Dockerfile:
And fails with:
|
Docker context is different to shell context, you need to use ENV and WORKDIR:
|
That works! Though, doesn't work on alpine, not sure why, but happy to accept whatever works at this point |
Possibly try this, if you are trying to install it via
|
According official documentation, it's not recommended to use |
in my case FROM python:3.10-slim not works but FROM python:3.10 works |
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. |
-vvv
option).Issue
Poetry will not install on the docker images.
This gives the "module not found" error with "cleo" as the missing module, same as #3345.
If I try the workaround in that issue-
I just get more errors-
The installation log-
It seems like the installer is ignoring the git branch that is passed to it.
I've tried this with the python3.9 and python 3.10 containers.
The text was updated successfully, but these errors were encountered: