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

UnicodeEncodeError while doing docker setup. #3672

Closed
2 of 3 tasks
viksts opened this issue Feb 10, 2021 · 4 comments
Closed
2 of 3 tasks

UnicodeEncodeError while doing docker setup. #3672

viksts opened this issue Feb 10, 2021 · 4 comments

Comments

@viksts
Copy link

viksts commented Feb 10, 2021

  • 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:
  • Poetry version:
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Trying to do setup of my project through docker on my development server. While installing poetry it is giving error
UnicodeEncodeError 'ascii' codec can't encode character '\u2022' in position 2: ordinal not in range(128) at ~/.poetry/lib/poetry/_vendor/py3.6/clikit/io/output_stream/stream_output_stream.py:24 in write The command '/bin/sh -c python3 ~/.poetry/bin/poetry install -n' returned a non-zero code: 1 but when i downgraded the poetry version to 1.0.10 it got installed properly.
Command :- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python

@viksts viksts added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 10, 2021
@orlevii
Copy link

orlevii commented Feb 16, 2021

@viksts
Hey, please try setting an env var in your Dockerfile:

ENV PYTHONIOENCODING=utf-8

@bobthebuilder1997
Copy link

bobthebuilder1997 commented Oct 30, 2021

@viksts Hey, please try setting an env var in your Dockerfile:

ENV PYTHONIOENCODING=utf-8

This didn't work for me. If you are using docker-compose.yaml then add the below environment into your container.

environment:
    - PYTHONIOENCODING=utf-8

@abn
Copy link
Member

abn commented Oct 30, 2021

Related: #1427 (comment)

@abn abn removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 30, 2021
@abn abn closed this as completed Oct 30, 2021
Copy link

github-actions bot commented Mar 2, 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 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants