Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.75k stars 456 forks source link

SSL Certificate error when downloading models in Python 3.9 #76

Open lolipopshock opened 2 years ago

lolipopshock commented 2 years ago

Describe the bug When using Python 3.9, it might fail to download the model files and eject the following errors:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

A possible solution might be found here https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org/53310545#53310545, though we may need more systematic way for solving this issue in layoutparser.