GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix for 3.6 with locale not set by brandonchinn178 · Pull Request #4038 · python-poetry/poetry

Conversation

@brandonchinn178

@brandonchinn178 brandonchinn178 commented May 4, 2021

Copy link
Copy Markdown
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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@abn

abn commented May 5, 2021

Copy link
Copy Markdown
Member

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brandonchinn178

brandonchinn178 commented May 5, 2021

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@abn

abn commented May 5, 2021

Copy link
Copy Markdown
Member

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@abn

abn commented May 5, 2021

Copy link
Copy Markdown
Member

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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

abn
abn previously requested changes May 6, 2021
View reviewed changes
Comment thread poetry/console/application.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@brandonchinn178

brandonchinn178 commented Jun 18, 2021

Copy link
Copy Markdown
Contributor Author

@abn any progress on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neersighted neersighted closed this Nov 14, 2021
@neersighted neersighted reopened this Nov 14, 2021
@neersighted
neersighted dismissed abn’s stale review November 14, 2021 06:12

Addressed

@neersighted

neersighted commented Nov 14, 2021

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brandonchinn178

brandonchinn178 commented Nov 14, 2021

Copy link
Copy Markdown
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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@neersighted

neersighted commented Nov 14, 2021

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brandonchinn178
Fix for 3.6 with locale not set
46170e8
@brandonchinn178

brandonchinn178 commented Nov 14, 2021

Copy link
Copy Markdown
Contributor Author

Done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

neersighted
neersighted approved these changes Nov 14, 2021
View reviewed changes
@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
@brandonchinn178 @1nF0rmed
Fix IO under Python 3.6 with locale not set (python-poetry#4038)
527074c
Resolves: python-poetry#3412
tony referenced this pull request in tony/poetry Jan 18, 2022
@tony
chore: Remove python 3.6 fix for io (python-poetry#4038)
aa14f53
tony referenced this pull request in tony/poetry Jan 22, 2022
@tony
chore: Remove python 3.6 fix for io (python-poetry#4038)
6de7495
@finswimmer finswimmer mentioned this pull request Mar 6, 2022
Release 1.2.0b1 #5280
Merged
@github-actions

github-actions Bot commented Feb 29, 2024

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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.

Reviewers

@neersighted neersighted neersighted approved these changes
@abn abn abn left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@brandonchinn178 @abn @neersighted
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.