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

ImportError for ssl #934

Closed
PapaTutuWawa opened this issue Nov 20, 2016 · 5 comments
Closed

ImportError for ssl #934

PapaTutuWawa opened this issue Nov 20, 2016 · 5 comments

Comments

@PapaTutuWawa
Copy link

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

@PapaTutuWawa
Copy link
Author

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

@inclement
Copy link
Member

Is this broken in master? Would you like to make a PR to apply your fix?

@PapaTutuWawa
Copy link
Author

It appears so; I will push my changes to my fork and then create a PR

@Fak3
Copy link
Contributor

Fak3 commented Nov 27, 2016

@Polynomdivision do you have the same traceback as in #850 ?

@PapaTutuWawa
Copy link
Author

PapaTutuWawa commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants