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

Fix for 3.6 with locale not set #4038

Merged
merged 1 commit into from
Nov 14, 2021
Merged

Fix for 3.6 with locale not set #4038

merged 1 commit into from
Nov 14, 2021

Conversation

brandonchinn178
Copy link
Contributor

Pull Request Check List

Resolves: #3412

  • Added tests for changed code.
  • Updated documentation for changed code.

I manually tested this by first installing the version of poetry on master, then running:

LANG= /path/to/poetry install

This should fail. Then making the change I did here and rerunning the above works.

Not sure what tests or docs should be updated, if any.

@abn
Copy link
Member

abn commented May 5, 2021

@brandonchinn178 thank for your contribution. However, I do not think this fixes the issue. I was also unable to reproduce the issue with 1.1.6.

@brandonchinn178
Copy link
Contributor Author

You were unable to reproduce running the above command using poetry installed with python 3.6?

@abn
Copy link
Member

abn commented May 5, 2021

Never mind, was using the wrong base container. I can reproduce the error as shown below.

podman run --rm -i --entrypoint bash python:3.6 <<EOF
set -xe
python -m pip install -q poetry
unset LANG
poetry --version
poetry new foobar
pushd foobar
poetry add pycowsay
EOF
Package operations: 12 installs, 0 updates, 0 removals


  UnicodeEncodeError

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

  at /usr/local/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 /usr/local/lib/python3.6/site-packages/clikit/io/output_stream/stream_output_stream.py:24 in write

Failed to add packages, reverting the pyproject.toml file to its original content.

@abn
Copy link
Member

abn commented May 5, 2021

I can also verify that the error does not occur with this PR. However the tests seem to not like it.

podman run --rm -i --entrypoint bash python:3.6 <<EOF
set -xe
python -m pip install -q git+https://github.com/python-poetry/poetry.git@refs/pull/4038/head
unset LANG
poetry --version
poetry new foobar
pushd foobar
poetry add pycowsay
EOF

abn
abn previously requested changes May 6, 2021
poetry/console/application.py Outdated Show resolved Hide resolved
@brandonchinn178
Copy link
Contributor Author

@abn any progress on this?

@neersighted
Copy link
Member

Looks like tests are still failing -- any interest in continuing work on this and getting it merged?

@brandonchinn178
Copy link
Contributor Author

The tests for 3.7+ were broken here: b6e2440. Do I need to fix those?

I'll look at the 3.6 failure

@neersighted
Copy link
Member

The tests for 3.7+ were broken here: b6e2440. Do I need to fix those?

I'll look at the 3.6 failure

master is fixed -- go ahead and rebase and it will solve the extraneous test failures.

@brandonchinn178
Copy link
Contributor Author

Done

@neersighted neersighted merged commit a434e7e into python-poetry:master Nov 14, 2021
1nF0rmed pushed a commit to 1nF0rmed/poetry that referenced this pull request Nov 15, 2021
edvardm pushed a commit to edvardm/poetry that referenced this pull request Nov 24, 2021
@finswimmer finswimmer mentioned this pull request Mar 6, 2022
Copy link

This pull request 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 Feb 29, 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

Successfully merging this pull request may close these issues.

poetry install exits with exit code 1 when run in a docker container
3 participants