This helped me after hours and hours of other attempts. Thank you ! On Friday, October 28, 2016 at 11:39:31 AM UTC-4, Jeroen Sijsling wrote: > > In fact a solution seems to be to use pyopenssl instead: > > ./sage -i pyopenssl > ./sage -f python2 > make ssl > > Hope this is canonical. > > Best, > Jeroen > > > > On Friday, October 28, 2016 at 5:07:03 PM UTC+2, Jeroen Sijsling wrote: >> >> Hello, >> >> Recently I got an actual desktop for use in my office. I installed a >> Linux distribution on it (elementary 0.4, based on Ubuntu). One of the >> first things I did was to try and install Sage after installing all needed >> dependencies. To my amazement, that actually worked without any hitch >> whatsoever. The problems arose when I tried to go further so as to be able >> to work on the LMFDB. >> >> Developing the LMFDB has a number of prerequisites. Among them is >> extending Sage by >> >> sage -pip install --upgrade pip >> sage -pip install --upgrade pymongo >> >> This fails. I get >> >> jrsijsling@JRS-ThinkCentre-M800z:~/Programs/sage-7.4$ ./sage -pip install >> --upgrade pip >> pip is configured with locations that require TLS/SSL, however the ssl >> module in Python is not available. >> Could not fetch URL https://pypi.python.org/simple/pip/: There was a >> problem confirming the ssl certificate: Can't connect to HTTPS URL because >> the SSL module is not available. - skipping >> Requirement already up-to-date: pip in ./local/lib/python2.7/site-packages >> jrsijsling@JRS-ThinkCentre-M800z:~/Programs/sage-7.4$ ./sage -pip install >> --upgrade pymongo >> pip is configured with locations that require TLS/SSL, however the ssl >> module in Python is not available. >> Collecting pymongo >> Could not fetch URL https://pypi.python.org/simple/pymongo/: There was a >> problem confirming the ssl certificate: Can't connect to HTTPS URL because >> the SSL module is not available. - skipping >> Could not find a version that satisfies the requirement pymongo (from >> versions: ) >> No matching distribution found for pymongo >> >> I do have OpenSSL, and the notebook version of Sage works for me. And my >> version of Python 2.7 did in fact have the ssl module. So I do not know >> what causes this. The following attempts at a solution have failed: >> >> Fully upgrading Python (pip, pymongo, setuptools) and rebuilding Sage; >> Using Sage 7.3 instead; >> Running ./sage -i openssl and trying again; >> Using the Sage shell. >> Running Python (2.7.10, which should have ssl installed internally) >> inside the Sage shell gives >> >> (sage-sh) jrsijsling@JRS-ThinkCentre-M800z:sage-7.4$ python >> Python 2.7.10 (default, Oct 28 2016, 09:09:23) >> [GCC 5.4.0 20160609] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >> import ssl >> Traceback (most recent call last): >> File "", line 1, in >> File "/home/jrsijsling/Programs/sage-7.4/local/lib/python/ssl.py", line >> 97, in >> import _ssl # if we can't import it, let the error propagate >> ImportError: No module named _ssl >> Any ideas? >> >> Thanks in advance, >> Jeroen >> >
-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.