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

Package resolution fails with private repository on 1.0.0b8 #1658

Closed
2 tasks done
Imaclean74 opened this issue Dec 2, 2019 · 4 comments
Closed
2 tasks done

Package resolution fails with private repository on 1.0.0b8 #1658

Imaclean74 opened this issue Dec 2, 2019 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@Imaclean74
Copy link
Contributor

Imaclean74 commented Dec 2, 2019

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Windows 10

  • Poetry version: 1.0.0b8

  • happens with newly created pyproject.toml. Only change is adding the "tool.poetry.source" section with private repo.

Issue

As of release 1.0.0b8, resolution against my private repository fails with the following error. If I roll back to 0.12.17 it works again.

Error string :

HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /pypi/black/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001E8EF4DED08>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))```
@Imaclean74 Imaclean74 added the kind/bug Something isn't working as expected label Dec 2, 2019
@Imaclean74
Copy link
Contributor Author

so looks like its failing entirely to connect to the internal repo and falling back to the external pypi.org. I'll see if I can get more log detail. repo details in pyproject.toml look something like :

[[tool.poetry.source]]
name = "foopypi"
url = "http://pypi.site.foo.com/simple"

@Imaclean74
Copy link
Contributor Author

update - looks like this is a duplicate of #1677

Thanks to the comment there - I'm now able to get things working by making our private repository the default. However, this is a) different to the previous behavior and b) logging doesn't indicate what's actually happene=ing. ie - global pypi is used as the default - and poetry doesn't fall back to the listed private repo.

[[tool.poetry.source]]
name = "foopypi"
url = "http://pypi.site.foo.com/simple"
default=true

@abn
Copy link
Member

abn commented May 9, 2022

Documentation at https://python-poetry.org/docs/master/repositories/ is now updated to reflect various configuraiton options. If pypi is not expected to be queried, then default=true (disabling PyPI) is the right approach.

@abn abn closed this as completed May 9, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue 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 Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants