icy-hair-30586
02/25/2022, 9:01 PM./pants generate-lockfiles --resolve=python-default
. I have ca_certs_path = "/Users/a.../.ca_bundle/certs.pem"
added to pants.toml, but I still get
Updating dependencies
Resolving dependencies...
SSLError
HTTPSConnectionPool(host='<http://pypi.org|pypi.org>', port=443): Max retries exceeded with url: /pypi/prefect/json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)')))
at ~/.cache/pants/named_caches/pex_root/venvs/s/268d4737/venv/lib/python3.7/site-packages/requests/adapters.py:517 in send
I have also set export REQUESTS_CA_BUNDLE=...
to the same file with the certs, just in case.
Is there any other setting I’m missing?hundreds-father-404
02/25/2022, 9:14 PM--find-links
, so John has been leading a project for PEX to have lockfile support a la pip. When we can switch to Pex, we will have support or this auth automatically.
Related question, are you using [python-repos]
?
In the meantime, some options:
1. Investigate what it would take to get this working with Poetry, keeping in mind it hopefully will go away in 2.11
2. Don't use Poetry to generate the lockfile (i.e. ./pants generate-lockfiles
). You can still use a lockfile by generating however you want and setting it up in [python].resolves
, then setting [python].invalid_lockfile_behavior = 'ignore'
icy-hair-30586
02/25/2022, 9:19 PMhundreds-father-404
02/25/2022, 9:21 PM./pants generate-lockfiles
, under-the-hood we are using Poetry to do the lockfile generation. That is changing soon to Pex because of the limitations of Poetry, but isn't ready yethundreds-father-404
02/25/2022, 9:22 PMI’m playing with my first pants projectAh, if you're just getting started, you might want to skip the
[python].resolves
feature for now. It's only a soft launch in Pants 2.10 because of limitations like what you're experiencing. See example-python
repo: https://github.com/pantsbuild/example-python/commit/1ba1247b824c8756780477ffd44692a21d702d65happy-kitchen-89482
02/25/2022, 10:50 PMhundreds-father-404
02/25/2022, 10:51 PMgenerate_constraints.txt
hundreds-father-404
02/27/2022, 5:07 PMicy-hair-30586
02/28/2022, 10:18 AMicy-hair-30586
02/28/2022, 10:18 AMicy-hair-30586
02/28/2022, 10:20 AMhappy-kitchen-89482
02/28/2022, 3:08 PMhappy-kitchen-89482
02/28/2022, 3:09 PMicy-hair-30586
02/28/2022, 3:30 PM