question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError for ssl

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
PapaTutuWawacommented, Nov 20, 2016

I found a solution: In the recipe for python2, the patch enable-ssl.patch is missing.

0reactions
PapaTutuWawacommented, Nov 27, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found