Thanks for reporting this and even providing a workaround :) You are right, Sage was built with libssl-dev but the final container had been missing openssl. I fixed it for the 8.2 build and pushed a new image to the Docker Hub.
julian On Wednesday, May 16, 2018 at 10:06:54 PM UTC+2, Nathan Dunfield wrote: > > 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.