question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Current master falls back to PyPi when using private repo.

See original GitHub issue

Following on from #5651

The original issue was that poetry could not handle repositories that hand back CDN links for packages with authenticationbaked into the URL because it would still add the base repository index auth details to the request headers.

After trying the lastest version from git I get a new issue.

(.venv) [daniel@dv-xps-fedora Davis_state_consumer]$ poetry@git add --source myget 'redacted'
Using version ^2.0.6 for redacted

Updating dependencies
Resolving dependencies... (4.2s)

  HTTPError

  404 Client Error: Not Found for url: https://pypi.org/pypi/redacted_dependency/json/

  at ~/.local/pipx/venvs/poetry@git/lib64/python3.10/site-packages/requests/models.py:960 in raise_for_status
      956│         elif 500 <= self.status_code < 600:
      957│             http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url)
      958│ 
      959│         if http_error_msg:
    → 960│             raise HTTPError(http_error_msg, response=self)
      961│ 
      962│     def close(self):
      963│         """Releases the connection back to the pool. Once this method has been
      964│         called the underlying ``raw`` object must not be accessed again.

That’s after adding the myget repo using:

poetry@git source add myget https://www.myget.org/F/redacted/python/

_Originally posted by @voney in https://github.com/python-poetry/poetry/issues/5651#issuecomment-1136564646_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
voneycommented, May 25, 2022

Thans for the quick reply @abn I’ll wait for version 1.2, I’m trying to get poetry used within my work and workarounds aren’t going to fly.

0reactions
abncommented, May 26, 2022

@voney can you see if #5698 fixes this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to use pip to install a package from a private ...
It certainly isn't the correct answer, but cloning the repo manually then pointing pip to localhost instead of github will get you past...
Read more >
How to Publish an Open-Source Python Package to PyPI
In this step-by-step tutorial, you'll learn how to create a Python package for your project and how to publish it to PyPI, the...
Read more >
pypiserver · PyPI
The most recent full release will always be available under the tag latest, and the current master branch will always be available under...
Read more >
Repositories | Documentation | Poetry - Python dependency ...
Repositories Poetry supports the use of PyPI and private repositories for discovery of packages as well as for publishing your projects.
Read more >
Changelog - pip documentation v22.3.1
Use html.parser by default, instead of falling back to html5lib when ... Log the resolved commit SHA when installing a package from a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found