Comments (6)
The solution to this issue is to run the following script (copied from Install Certificates.command) after brew install python3:
# install_certifi.py
#
# sample script to install or update a set of default Root Certificates
# for the ssl module. Uses the certificates provided by the certifi package:
# https://pypi.python.org/pypi/certifi
import os
import os.path
import ssl
import stat
import subprocess
import sys
STAT_0o775 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR
| stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP
| stat.S_IROTH | stat.S_IXOTH )
def main():
openssl_dir, openssl_cafile = os.path.split(
ssl.get_default_verify_paths().openssl_cafile)
print(" -- pip install --upgrade certifi")
subprocess.check_call([sys.executable,
"-E", "-s", "-m", "pip", "install", "--upgrade", "certifi"])
import certifi
# change working directory to the default SSL directory
os.chdir(openssl_dir)
relpath_to_certifi_cafile = os.path.relpath(certifi.where())
print(" -- removing any existing file or link")
try:
os.remove(openssl_cafile)
except FileNotFoundError:
pass
print(" -- creating symlink to certifi certificate bundle")
os.symlink(relpath_to_certifi_cafile, openssl_cafile)
print(" -- setting permissions")
os.chmod(openssl_cafile, STAT_0o775)
print(" -- update complete")
if __name__ == '__main__':
main()
from comet.
from brew installation of Python 3.6.1: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
from comet.
TOP!!!! THANK YOU !!!!!
from comet.
I still have the issue. I searched through a bunch of similar Stackoverflow questions, but none of the suggested solutions seem to work. Any idea why this solution (even though the error message is exactly the same) is not working in my case?
from comet.
@ricardorei Big thank you!
from comet.
We started observing this problem on GHA/macOS, when adding Python 3.11 to the test matrix. It still works on any other operating system or Python version. Your suggestion fixed the problem, @ricardorei. Thanks a stack.
CERTIFICATE_VERIFY_FAILED
: https://github.com/crate/crate-python/actions/runs/3152435065/jobs/5127728530#step:4:240- Success with
install_certifi.py
: https://github.com/crate/crate-python/actions/runs/3153047916/jobs/5129043155
from comet.
Related Issues (20)
- Segment order incorrect when running on >1 GPU HOT 2
- [QUESTION] Batch-normalization in pooling layer HOT 2
- t-test is two-tailed instead of one-tailed HOT 9
- Evaluate excessively long sequence pair[QUESTION] HOT 7
- [QUESTION] Is WMT data prior to WMT17 unseen? HOT 2
- [QUESTION] Load the model from path HOT 5
- Tag v1.1.3 HOT 2
- `comet-compare` is not working HOT 3
- [QUESTION]Interpretation and comparison of COMET scores across several languages HOT 5
- [QUESTION] HOT 4
- Hide device info prints in Python HOT 1
- Show individual system scores in compare
- Referenceless QE metrics require reference input HOT 1
- comet-score [other_params] --to_json True doesn't output a json file HOT 1
- pip update HOT 4
- Batch size in words
- Bootstrap resampling HOT 2
- Unable to find hparam file for a custom model HOT 1
- Can't install v1.2.0 HOT 2
- Update to entmax 1.1 to fix poetry error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comet.