legacy-python-cli icon indicating copy to clipboard operation
legacy-python-cli copied to clipboard

SSLError when using Anaconda Python distribution

Open alanhamlett opened this issue 7 years ago • 3 comments

SSLError when sending heartbeats:

Max retries exceeded with url: /api/v1/heartbeats (Caused by SSLError(SSLError(1, '_ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm

Looks like Anaconda Python 2.x (distributed by Continuum Analytics, Inc.) uses a very old version of the ssl built-in module: http://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

Should log a more informative error message to ~/.wakatime.log when detecting an old ssl module along with Anaconda Python.

alanhamlett avatar Nov 01 '17 15:11 alanhamlett

Another error message from Anaconda on Windows:

File "C:\Users\username\AppData\Roaming\Sublime Text 3\Packages\WakaTime\packages\wakatime\packages\requests\adapters.py", line 506, in send
    raise SSLError(e, request=request)
wakatime.packages.requests.exceptions.SSLError: HTTPSConnectionPool(host='api.wakatime.com', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

alanhamlett avatar Jun 19 '19 15:06 alanhamlett

Does running easy_install pyopenssl fix this error?

alanhamlett avatar Aug 28 '19 09:08 alanhamlett

Possibly fixed with v13.0.4 of wakatime.

alanhamlett avatar Feb 05 '20 19:02 alanhamlett