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

Issue while loading Obsei Image using URL #99

Closed
sanjaybharkatiya opened this issue May 6, 2021 · 1 comment · Fixed by #102
Closed

Issue while loading Obsei Image using URL #99

sanjaybharkatiya opened this issue May 6, 2021 · 1 comment · Fixed by #102
Assignees
Labels
bug Something isn't working

Comments

@sanjaybharkatiya
Copy link
Collaborator

Stacktrace
SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /lalitpagaria/obsei/master/images/logos/obsei_200x200.png (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)')))
Traceback:
File "/usr/local/lib/python3.8/site-packages/streamlit/script_runner.py", line 337, in _run_script
exec(code, module.dict)
File "/home/user/ui.py", line 9, in
favicon = Image.open(requests.get(logo_url, stream=True).raw)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)

Please complete the following information:

  • OS:
  • Version:

Additional context
Add any other context about the problem here.

@sanjaybharkatiya sanjaybharkatiya added the bug Something isn't working label May 6, 2021
@lalitpagaria
Copy link
Collaborator

@sanjaybharkatiya It seem there is issue on windows platform about python SSL certification.
You can simplest way is to disable env variable by -

export PYTHONHTTPSVERIFY=0

or before calling to python command -

PYTHONHTTPSVERIFY=0 python your_script

For proper fix please refer discussion thread https://bugs.python.org/issue36011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants