Just tried out the latest Sage Docker image and, unlike all previous 
versions, I can no longer use pip to fetch packages off PyPI:

docker run -it sagemath/sagemath:8.2 /bin/bash
sage@6bf664a266cd:~/sage$ sage -pip install FXrays
pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.
Collecting FXrays
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS 
URL because the SSL module is not available.",)': /simple/fxrays/
[...]
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS 
URL because the SSL module is not available.",)': /simple/fxrays/
  Could not fetch URL https://pypi.python.org/simple/fxrays/: There was a 
problem confirming the ssl certificate: 
HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded 
with url: /simple/fxrays/ (Caused by SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.",)) - skipping
  Could not find a version that satisfies the requirement FXrays (from 
versions: )
No matching distribution found for FXrays

If I do

sudo apt-get update; sudo apt-get install -y openssl

in the container then pip starts working again.  So it looks like Python 
was compiled with SSL support but somehow the openssl module itself gets 
removed somewhere in the process.

Thanks,

Nathan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to