-
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 install exits with exit code 1 when run in a docker container #3412
Comments
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ I got the same thing, and bisecting my changes, I noticed that it happens when |
I was able to work around this by adding
to my Dockerfile. But I'm going to leave this issue open because I think it's a bug that poetry is existing like this when no locale is set. A way to replicate this outside of docker is to temporarily unset the locale, e.g.:
|
If poetry must have LOCALE, then it must inform the user why it is failing, i.e. it should |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Found the issue: poetry/poetry/installation/executor.py Line 199 in a12d142
LANG= python3.6 -c 'print("•")' fails on python 3.6, but not 3.7+:
|
Not sure if this bug is in line with: * python-poetry/poetry#3412
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. |
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: Debian stretch docker container, Arch host
Poetry version: 1.1.4
Link of a Gist with the contents of your pyproject.toml file: https://github.com/bitcoin-core/HWI/blob/def565b5ac5d98b5fcc453328fc9a20207c6e00a/pyproject.toml
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
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.The text was updated successfully, but these errors were encountered: