Skip to content

poetry install exits with exit code 1 when run in a docker container #3412

@achow101

Description

@achow101

Issue

When trying to install the dependencies with poetry for my project in a docker container, poetry just exits with no errors or warning, just an exit code of 1.

The Dockerfile is https://github.com/bitcoin-core/HWI/blob/def565b5ac5d98b5fcc453328fc9a20207c6e00a/contrib/build.Dockerfile and the script being run is https://github.com/bitcoin-core/HWI/blob/def565b5ac5d98b5fcc453328fc9a20207c6e00a/contrib/build_bin.sh. It specifically errors on the line poetry install -E qt. Changing this command to include -vvv does not effect the output.

The output is

+ poetry install -E qt
Creating virtualenv hwi-G-6EQZNy-py3.6 in /root/.cache/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 28 installs, 0 updates, 0 removals

This previously worked when poetry 1.0.10 was used and it seems like 1.1.0 is the version where this stopped working.

If I run this on my host, also with 1.1.4, there are no issues. It seems to only be in this container. The script doesn't seem to make a difference; I can have a shell in the container, do poetry install manually, and it still fails in the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions