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

SSL Certification Error #185

Closed
souravkrpathak opened this issue Jan 30, 2023 · 2 comments
Closed

SSL Certification Error #185

souravkrpathak opened this issue Jan 30, 2023 · 2 comments
Labels
invalid This doesn't seem right wontfix This will not be worked on

Comments

@souravkrpathak
Copy link

  • deep_translator version: 1.9.1
  • Python version: 3.9
  • Operating System: Win 11

Description

Error:
ERROR out: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /m?tl=pt&sl=en&q=my+name+is+python(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

My Code:
from deep_translator import GoogleTranslator
translator = GoogleTranslator(source='en', target='pt')
data = 'my name is python'
translator.translate(data)

@nidhaloff
Copy link
Owner

@souravkrpathak This looks like an issue with your system. It is not related to deep-translator.
Make sure that your system is configured correctly, you can find many examples about this error online.

I guess, I can allow arguments to be passed to deep-translator under the hood as a hack (specifically the verify=False argument), but this is not a good idea for security reasons. So the best option would be from your side to verify your configuration.

@nidhaloff nidhaloff added invalid This doesn't seem right wontfix This will not be worked on labels Feb 2, 2023
@souravkrpathak
Copy link
Author

Thanks @nidhaloff for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants