nlmatics / llmsherpa

Developer APIs to Accelerate LLM Projects
https://www.nlmatics.com
MIT License
1.37k stars 134 forks source link

Certificate issues #80

Open jimmytidey opened 4 months ago

jimmytidey commented 4 months ago

When I try to run PDFSherpa I get a certificate issue.

MaxRetryError: HTTPSConnectionPool(host='readers.llmsherpa.com', port=443): Max retries exceeded with url: /api/document/developer/parseDocument?renderFormat=all (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

I've tried running python3 -m pip install --upgrade certifi

I'm not sure what to try next

ManiacUrgency commented 3 months ago

Same here

jimmytidey commented 3 months ago

https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests

Run Install Certificates.command in your MacOS finder (weird one... )

This may also be related but I'm not sure...

Add this to your python code - try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context

nltk.download('punkt')

ManiacUrgency commented 3 months ago

Thanks for the reply. It was actually because I had environment setup issues, I was using the wrong version of Python :(

niranjan-kt commented 2 months ago

Thanks for the reply. It was actually because I had environment setup issues, I was using the wrong version of Python :(

Can you please tell me the minimum python version that is needed? I am using python 3.8 and I face the same issue.