ImportError for ssl
See original GitHub issueWhen I try to import ssl using a simple import statement, e.g. import ssl
, I get the error thrown that _ssl
could not be found. Even when I add openssl
to the requirements, the import error’s still there.
I also tried changing the recipe for hostpython2 (In order to compile with SSL and crypto), but I get errors during the compiling process (Undefined references).
I’m wondering if that’s an error of the recipe or a mistake I made
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ImportError: No module named _ssl - python - Stack Overflow
This worked for me in a CentOS 6.3 x86_64 environment with python 2.7.3. Also I had python 2.6.6 installed, but with ssl working...
Read more >Importerror cannot import name ssl from urllib3 util ssl_ : Fix
Importerror cannot import name ssl from urllib3 util ssl_ error comes because of an incompatible version of python with urllib3 module.
Read more >DLL load failed while importing _ssl: The specified module ...
msg360055 ‑ (view) Author: Ajaya (Ajaya) Date: 2020‑01‑15 13:35
msg360059 ‑ (view) Author: Christian Heimes (christian.heimes) * Date: 2020‑01‑15 16:03
msg360074 ‑ (view) Author: Steve...
Read more >DLL load failed while importing _ssl: The specified ... - GitHub
We have built python3.7.5 and python3.8.1 source code in windows 10 machine. I have created an embedded interptreter where i am trying to...
Read more >SSL Certificate import Error - ManageEngine Pitstop
It says: Exception occurred when importing the SSL certificate! : sdp.keystore - File content type not allowed|. That is what the log file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a solution: In the recipe for python2, the patch
enable-ssl.patch
is missing.If I remember correctly (because I deleted everything after I fixed this issue for myself), then it was not an issue with loading libraries. It was just that
_ssl
was not found. And after some digging around, I found out that no “compiled” python file for (I guess it was called like this; I don’t remember anymore)_ssl.py
was created.