https://pantsbuild.org/ logo
w

wide-zoo-86070

03/03/2022, 7:45 PM
Hi Pants team. I am new to Pants and I am trying to get it working inside my company environment. When running
.pants --version
I encounter the following error.
Copy code
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)'))': /simple/virtualenv/
I think this warning comes from
Copy code
"${python}" "${pex_path}" -r requirements.txt -c virtualenv -o virtualenv.pex
In my company, we have artifactory mirrors /simple. I am wondering how to config pants to use that?
h

high-yak-85899

03/03/2022, 8:17 PM
Don't have anything to add, but following because we are also talking of using artifactory in the future and I'd like to know the resolution.
f

fresh-cat-90827

03/03/2022, 8:24 PM
slightly on tangent, but you’ll need at some point this: https://www.pantsbuild.org/docs/python-third-party-dependencies#custom-repositories
h

hundreds-father-404

03/03/2022, 8:30 PM
Hi welcome! If you haven't yet seen it, bump on this page: https://www.pantsbuild.org/v2.10/docs/restricted-internet-access
w

wide-zoo-86070

03/04/2022, 4:10 PM
cool @hundreds-father-404. I am trying to download the PEX then running it. but I got the following error. any clue?
Copy code
./pants --version
11:10:21.32 [INFO] Initializing scheduler...
11:10:21.48 [ERROR] no path specified
👀 1
h

hundreds-father-404

03/04/2022, 4:14 PM
huh, what version is this?
w

wide-zoo-86070

03/04/2022, 4:15 PM
I downloaded release_2.10.0rc2 and modified the pants.toml in the example-python repo which i am playing with. @hundreds-father-404
I am still facing this issue. Any suggestion?
5 Views