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

Requests fails with SSL error python 3.6 #61

Closed
FredHappyface opened this issue Jan 18, 2020 · 14 comments
Closed

Requests fails with SSL error python 3.6 #61

FredHappyface opened this issue Jan 18, 2020 · 14 comments

Comments

@FredHappyface
Copy link

FredHappyface commented Jan 18, 2020

The python requests library installs without a problem however when connecting to api.github.com fails with SSL error no ciphers available. Running the same application in pydroid 3 or with python 3.8 on Debian does not result in this error

@riverfor
Copy link
Member

riverfor commented Jan 19, 2020

Thanks for the feedback, it is indeed a bug, I will fix it as soon.

@riverfor
Copy link
Member

riverfor commented Jan 21, 2020

Hello,
Can you use the below as a temporary solution, I will fix it in next update.

import requests
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = "TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-256-GCM-SHA384:ECDHE:!COMPLEMENTOFDEFAULT"

More detail: https://www.openssl.org/blog/blog/2017/05/04/tlsv1.3/

@FredHappyface
Copy link
Author

FredHappyface commented Jan 22, 2020

Thanks very much for that. Yeah can certainly do :)

@riverfor
Copy link
Member

riverfor commented Jan 23, 2020

If it doesn't work please reopen this issue.

@riverfor
Copy link
Member

riverfor commented Feb 1, 2020

It is fixed in QPython 3L (v3.0.0) which will be released in these two days.

@phedoff
Copy link

phedoff commented Feb 18, 2020

Hi, I tried the latest build (playstore), am still getting the ["no ciphers available" (_ssl.c:841)] error (workaround from comment #3 works).

@tayloredenterprises
Copy link

tayloredenterprises commented Apr 3, 2020

I tested this with v3.0.0 and it doesnt work without the import requests syntax defined above.

@phedoff
Copy link

phedoff commented Apr 7, 2020

Reopened in #70

I tested this with v3.0.0 and it doesnt work without the import requests syntax defined above.

@lesca
Copy link

lesca commented Apr 20, 2020

Tested with Qpython 3OS v3.0.0
still get this error.

@frank699
Copy link

frank699 commented Jul 14, 2020

same problem here :/

@sibo7851
Copy link

sibo7851 commented Feb 19, 2021

Hey just wanted to mention that this issue still exists, the fix above did seem to do the trick though.

@Runa53454
Copy link

Runa53454 commented Jan 18, 2022

Same here

@PicoGeyer
Copy link

PicoGeyer commented Jan 23, 2022

Sorry to bump a closed ticket, but I can't seem to get this to work. I tried the latest Qpython available in the play store and still run into the issue. I then tried the latest version from here: https://github.com/qpython-android/qpython/releases/tag/3.0.1
It looks a lot nicer, but I still run into the same issue.
I go to the QPYPI client and upgrade pip with "pip3 install --upgrade pip"
Then I try to install opencv:
pip3 install opencv-python:

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),)': /simple/opencv-python/
Could not fetch URL https://pypi.org/simple/opencv-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/opencv-python/ (Caused by SSLError(SSLError(1, '[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:841)'),)) - skipping

Is there perhaps a way to apply the workaround from QPYPI client so that I can install open-cv?

@phedoff
Copy link

phedoff commented Jan 23, 2022

This app hasn't been updated for so long now - do you know pydroid? It's being updated on a regular basis, maybe you should consider using this instead. QP3 was once great (when it worked) but it's probably dead.

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

9 participants