Skip to content

poetry install: --no-ansi uses non-ascii character ( - \u2022 - BULLET) #3078

@rscarrera27

Description

@rscarrera27
  • 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

Step 11/15 : RUN poetry config virtualenvs.create false   && poetry install --no-interaction --no-ansi
 ---> Running in 3956f57f28cd
Skipping virtualenv creation, as specified in config file.
Installing dependencies from lock file

Package operations: 80 installs, 1 update, 0 removals


  UnicodeEncodeError

  'ascii' codec can't encode character '\u2022' in position 2: ordinal not in range(128)

  at ~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/clikit/io/output_stream/stream_output_stream.py:24 in write

  UnicodeEncodeError

  'ascii' codec can't encode character '\u2022' in position 2: ordinal not in range(128)

  at ~/.pyenv/versions/3.6.2/lib/python3.6/site-packages/clikit/io/output_stream/stream_output_stream.py:24 in write
The command '/bin/sh -c poetry config virtualenvs.create false   && poetry install --no-interaction --no-ansi' returned a non-zero code: 1

then I ran same command on macbook (iTerm2) and I could see a BULLET(\u2022) character. I searched about BULLET character on google and it is not an ascii character.

Printing non ascii character BULLET in --no-ansi mode seems to be fixed.

🕙 15:41:15 
❯ poetry install --no-interaction --no-ansi                                                                 
Installing dependencies from lock file

Package operations: 20 installs, 0 updates, 0 removals

  • Installing asynctest (0.13.0): Pending...  • Installing coverage-badge (1.0.1): Pending...  • Installing emoji (0.5.4): Pending...  • Installing faker (2.0.5): Pending...  • Installing fastpbkdf2 (0.2): Pending...  • Installing freezegun (0.3.15): Pending...  • Installing <secret> (0.0.2): Pending...  • Installing <secret> (0.1.5): Pending...  • Installing <secret> (0.3.2): Pending...  • I

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions