-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Repository "private" does not exist | Since 1.1.0 #3114
Comments
@RobinFrcd can you provide a sanitised output of |
|
@RobinFrcd I am unable to reproduce this. root@610e2455d140:/foobar# poetry add --source private foobar^C
root@610e2455d140:/foobar# cat pyproject.toml | tail -n 10
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "private"
url = "https://my.private.repo/simple"
secondary = true
root@610e2455d140:/foobar# poetry config repositories
{'private': {'url': 'https://my.private.repo/simple'}}
root@610e2455d140:/foobar# poetry config http-basic.private username password
No suitable keyring backends were found
Using a plaintext file to store and retrieve credentials
root@610e2455d140:/foobar# poetry add --source private foobar
ConnectionError
HTTPSConnectionPool(host='my.private.repo', port=443): Max retries exceeded with url: /simple/foobar/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fe257040>: Failed to establish a new connection: [Errno -2] Name or service not known'))
at /usr/local/lib/python3.8/site-packages/requests/adapters.py:516 in send
512│ if isinstance(e.reason, _SSLError):
513│ # This branch is for urllib3 v1.22 and later.
514│ raise SSLError(e, request=request)
515│
→ 516│ raise ConnectionError(e, request=request)
517│
518│ except ClosedPoolError as e:
519│ raise ConnectionError(e, request=request)
520│ |
Well, the URL I gave as an example is not a valid one. I can't give the private repo I'm using for privacy reasons. The error I get is on the |
@RobinFrcd yeah; I am aware; i just want to demonstrate that the code got past the credential fetching. |
Can you maybe try in a container or a clean environent? Just want to make sure this is not somehting environment specific. |
Alright, I managed to make it work by tweaking the toml. I moved I had (which is working on 1.0.10 but not on 1.1.0+) [[tool.poetry.source]]
name = "private"
url = "https://my.private.repo/simple/"
secondary = true
[tool.poetry]
name = "metrics"
version = "0"
description = ""
authors = [""]
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
omit = [
'tests/*',
'*_pb2.py',
'*_pb2_grpc.py'
]
[tool.poetry.dependencies]
python = "^3.7"
google-api-python-client = "==1.9.1"
grpcio = "==1.29.0"
grpcio-status = "==1.29.0"
private-logger = "==2.0.2"
protobuf = "==3.11.1"
sentry-sdk = "==0.15.1"
taskipy = ">=1.3.0"
numpy = "*"
[tool.poetry.dev-dependencies]
black = "==19.3b0"
flake8 = "==3.7.9"
mypy = "==0.770"
[tool.taskipy.tasks]
black = "black ."
mypy = "mypy . --ignore-missing-imports"
linter = "flake8 ." And switched it to [[tool.poetry.source]]
name = "private"
url = "https://my.private.repo/simple/"
secondary = true
[tool.poetry]
name = "metrics"
version = "0"
description = ""
authors = [""]
[tool.poetry.dependencies]
python = "^3.7"
google-api-python-client = "==1.9.1"
grpcio = "==1.29.0"
grpcio-status = "==1.29.0"
private-logger = "==2.0.2"
protobuf = "==3.11.1"
sentry-sdk = "==0.15.1"
taskipy = ">=1.3.0"
numpy = "*"
[tool.poetry.dev-dependencies]
black = "==19.3b0"
flake8 = "==3.7.9"
mypy = "==0.770"
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
omit = [
'tests/*',
'*_pb2.py',
'*_pb2_grpc.py'
]
[tool.taskipy.tasks]
black = "black ."
mypy = "mypy . --ignore-missing-imports"
linter = "flake8 ." And now it works with 1.1.0+. So I don't know if we should close the issue, I think it's still a bug. |
I get a similar issue with the 1.1.2 version.
Example of toml file:
Also, I set Is there anything I can do to fix this? I can make a PR if you guide me on where and what should be fixed. |
@ChameleonTartu same issue as yours |
Workaround |
Not sure if 👍 s are tracked on this issue, but I can reproduce this exactly. Poetry version 1.1.4. |
I experience the same problem with version |
I have had the same issue. In my case I had sections in toml file in the following order:
Managed to fix it by moving the |
I am having a similar issue. This is the command I am executing (I am replacing here the original names by placeholders):
|
I ran into this using poetry Turns out deleting |
Is there a decent fix for this issue. I'm using poetry |
@xmnlab your reported issue not related to the issue discussed here. It looks like you don't have the right keys configured or your network dropped out. @SamuelSmets can you please provide more details or better yet maybe raise a new issue with specific details? I'd recommend you test first with the latest poetry version. |
I solve the issue for me by running:
|
I've found this open issue with the same problem, but upgrading from 1.7.1 to 1.8.3 fixed it for me. |
I am on the latest Poetry version: tested from 1.1.0 to 1.1.2
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Docker, python:3.7-buster
Poetry version: 1.1.0 to 1.1.2
Simple pyproject.toml with a private repo:
Issue
When running a poetry install with a private repo (
poetry config http-basic.private
is set correctly), I get:If I downgrade to
1.0.10
, everything works fine. This error popped at the 1.1.0The text was updated successfully, but these errors were encountered: