python-poetry / python-poetry/install.python-poetry.org

Network issues are hidden by the install script

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
255
Forks
65
Avg merge
2h 48m
Merged PRs (30d)
1

Description

See https://github.com/python-poetry/install.python-poetry.org/blob/385616cd90816622a087450643fba971d3b46d8c/install-poetry.py#L356-L369

The above configuration means "stdout to pipe, stderr matches stdout".
If you're having network issues, this installer either completely obscures or significantly delays the reporting of said errors.
I never let it run it completion, but the network issues were significant enough that it was running for several hours (this was with default configuration, outside of being behind an org proxy + pip.conf pointing to an org mirror of pypi).

Personally, I think it's fine just to log to the console all stdout and stderrr from PIP as it happens.
Might be good to log individual process stages of the environment's creation as well (so you can know if you have other issues with your system).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in install-poetry.py at lines 356-369 and inspect how the installer captures and reports pip stdout and stderr. Reproduce the behavior with a slow or failing network configuration, then make sure pip output is visible as it occurs and process stages provide useful progress information.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.