-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
poetry install: --no-ansi
uses non-ascii character ( •
- \u2022
- BULLET
)
#3078
Comments
I confirm this issue with `Installing dependencies from lock file Package operations: 120 installs, 0 updates, 0 removals UnicodeEncodeError 'ascii' codec can't encode character '\u2022' in position 2: ordinal not in range(128) at ~/python/lib/python3.6/site-packages/clikit/io/output_stream/stream_output_stream.py:24 in write` |
@NovemberOscar have you seen #1427 (comment)? I am curious if the root cause is the same here. |
Oh. I never seen it before when I searched issue 🤔 It seems very similar to my one (docker, encoding, clikit...) I will check again soon :) |
@abn Thanks for letting me know! after I fixed container locale, poetry install succeed. But as you know, most people don't specify locale in Dockerfile. Using |
This is not really a poetry specific issue. And we use non ascii characters elsewhere too. https://click.palletsprojects.com/en/5.x/python3/#python-3-surrogate-handling The issue here is the Ubuntu container. Additionally, this is a non issue for python 3.7. |
Fixes a bug with Poetry/Python 3.6, related to: - python-poetry/poetry#1427 (comment) - python-poetry/poetry#3078
Fixes a bug with Poetry/Python 3.6, related to: - python-poetry/poetry#1427 (comment) - python-poetry/poetry#3078
Hello, if you're encountering such an issue, here are a few steps you might want to try. |
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: Ubuntu 16.04 on Docker
Poetry version: 1.1.0
Link of a Gist with the contents of your pyproject.toml file: Unable to expose due to company's security policy
Issue
I got an this message from docker
then I ran same command on macbook (iTerm2) and I could see a
BULLET
(\u2022) character. I searched aboutBULLET
character on google and it is not an ascii character.Printing non ascii character
BULLET
in--no-ansi
mode seems to be fixed.The text was updated successfully, but these errors were encountered: