Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate issues #80

Open
jimmytidey opened this issue May 7, 2024 · 4 comments
Open

Certificate issues #80

jimmytidey opened this issue May 7, 2024 · 4 comments

Comments

@jimmytidey
Copy link

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
Copy link

Same here

@jimmytidey
Copy link
Author

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
Copy link

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

@niranjan-kt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants