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.

Enabling SSL for python3.5 using crystax

See original GitHub issue

Hi

I have just spend a full day solving a problem with accessing HTTPS sites on android. I finally figured out the problem:

Almost all http libraries in python relies on the ssl.py module in the standard library. This module is uses a C-extension _ssl.so that must be “baked in” with the cpython interpreter at compilation. The crystax android ndk however does not do this by default however, and so reaching any https site is not possible. For the novice programmer it is, in no way obvious why ssl.py cannot be imported, so I would propose that somewhere in the documentation, it is described how to recompile the crystax python interpreter with ssl support from the crystax-ndk.

I would gladly write this, but where would it be appropriate to put it in the docs?

Regards Emil Lynge

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
inclementcommented, Jan 30, 2019

Yep, we now support python3.7 using the normal google NDK.

2reactions
FabSchillingcommented, May 5, 2018

Hello, is there now a working solution to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ssl — TLS/SSL wrapper for socket objects — Python 3.11.1 ...
Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() of an SSLContext instance to wrap sockets as SSLSocket objects.
Read more >
"ssl module in Python is not available" when installing ...
Step by step guide to install Python 3.6 and pip3 in Ubuntu. Install the necessary packages for Python and ssl: $ sudo apt-get...
Read more >
buildozer - PyPI
Building kivy app with python3 requirement gives "No compiled python is present to zip, skipping." warning and "Unable to import kivy._clock. Have you...
Read more >
Python Install - compile from source with SSL module, pip TLS
0:00 - here, I'll first demonstrate a pip warning when Python is configured without the SSL module1. if you are installing Python from ......
Read more >
SSL module in Python is not available | unable to ... - YouTube
Hello Friends, If you are facing below kind of warning or error while installing python package then watch this episode to solve it....
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