-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Package requests==2.32.0 fails to import package ssl is not available #918
Comments
Thank you for reporting this. You can workaround it by adding Let me consider how we should fix it for a while. |
When attempting to use the online demo linked from the readme, the application fails with the following error message:
Steps to Reproduce:
|
@aotombielecki Thanks for the catch! It's been fixed now 👍 |
This seems to be resolved with requests==2.32.3:
I've verified that my original example works with this version of the package. Suggesting to close this issue as won't fix. |
Thanks! |
The latest release of requests (2.32.x) fails to work with error
TypeError: Can't create an SSLContext object without an ssl module
.Minimal reproducible example:
streamlit_app.py:
requirements.txt:
Available on share.stlite.net
Discussion
I've done some investigation and this seems to happen because of the code that patches
requests
(stlite/packages/kernel/py/stlite-server/stlite_server/bootstrap.py
Line 153 in d8d376b
and calls create_urllib3_context()
on import
Since ssl is not installed, the import fails.
The text was updated successfully, but these errors were encountered: