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.

poetry 1.1.x causes SSLCertVerificationError when installing packages from private repo

See original GitHub issue

I have a poetry project, configured with a private pypi repo, that used to work well, but after upgrading poetry to 1.1.x (tried 1.1.0 to 1.1.2), it causes error like

#16 26.50 Retrying HTTP request in 0.5 seconds.
#16 27.13 Retrying HTTP request in 1.0 seconds.
#16 28.25 Retrying HTTP request in 1.5 seconds.
#16 29.87 Retrying HTTP request in 2.0 seconds.
#16 32.00 Retrying HTTP request in 2.5 seconds.
#16 34.71 
#16 34.71   SSLError
#16 34.71 
#16 34.71   HTTPSConnectionPool(host='<PRIVATE-REPO-HOST>)', port=443): Max retries exceeded with url: <URL-to-myapp-0.1.3-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)')))
#16 34.71 
#16 34.71   at /usr/local/lib/python3.8/site-packages/requests/adapters.py:514 in send
#16 34.76       510│                 raise ProxyError(e, request=request)
#16 34.76       511│ 
#16 34.76       512│             if isinstance(e.reason, _SSLError):
#16 34.76       513│                 # This branch is for urllib3 v1.22 and later.
#16 34.76     → 514│                 raise SSLError(e, request=request)
#16 34.76       515│ 
#16 34.76       516│             raise ConnectionError(e, request=request)
#16 34.76       517│ 
#16 34.76       518│         except ClosedPoolError as e:
#16 34.76 
#16 ERROR: executor failed running [/bin/sh -c poetry install --no-dev]: runc did not terminate sucessfully

when downloading packages that are only available in the private repo.

When I downgrade poetry to 1.0.10, it then works fine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gazpachokingcommented, Jul 21, 2022

This is still an issue on 1.2.0b3

1reaction
zyxuecommented, Oct 30, 2020

what I have done is basically

poetry config certificates.mypypi.cert /app/cacerts.pem
export REQUESTS_CA_BUNDLE=/app/cacerts.pem

am I missing something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"SSL certificate verify failed" using pip to install packages
This command will add pypi.python.org to the trusted sources and will install all the required package. I ran into the error myself and...
Read more >
Repositories | Documentation | Poetry - Python dependency ...
Private Repository Example Installing from private package sources By default, Poetry discovers and installs packages from PyPI.
Read more >
A brand new website interface for an even better experience!
poetry 1.1.x causes SSLCertVerificationError when installing packages from private repo.
Read more >
Dependency Management With Python Poetry
A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects. This way, you can be sure ......
Read more >
poetry-dynamic-versioning - PyPI
For Poetry 1.1.x, you can use an older version of ... If you've previously installed the deprecated poetry-dynamic-versioning-plugin package, ...
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