Maybe I am not following the docs clearly enough or maybe this is a Conda permission issue but upon running conda env update -f environment.yml in my bristlemouth conda environment (I’m following the ENV_SETUP.md document in the bm_protocol github) I get this error message:
(bristlemouth) > $ conda env update -f environment.yml [±develop ✓]
Collecting package metadata (repodata.json): failed
CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /sofar_fw/osx-64/repodata.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')))
I would expect that I do not have a certificate to access this repodata.json file, but why is it required for an open source repository?
Hi zach, thanks for the help. I tried curl and it is able to successfully connect (I can also view the file in my browser). I’m not sure why conda-env update is raising an SSL error. Here is the curl output:
The differences I see from my own curl invocation are:
I see ALPN: server accepted h2 but you see ALPN: server did not agree on a protocol. Uses default. which then goes with HTTP 1.1 instead of HTTP 2. Shouldn’t matter, but it’s a signal something’s different.
I see the certificate issuer as Cloudflare, but you see Zscaler (a cybersecurity company). That’s another sign of some system in the middle that could be blocking conda.
If it’s an option for you, my best advice is to run the conda env update from another network, either by moving your computer (if it’s a laptop) to home or elsewhere, or else through a VPN or other proxy.
If those aren’t options, you may have to talk to local IT folks.
Sorry, i forgot to attach the JSON but yes I do receive that after that line. And yes I do logon to my company’s network through zscaler so that might have something to do with it. I can reach out to them for some help.