does "import ssl" work in Sage's Python?

On Mon, Mar 4, 2019 at 8:23 AM Travis Scrimshaw <tsc...@ucdavis.edu> wrote:
>
> I forgot to mention that this is using 8.7.beta6.
>
> Best,
> Travis
>
>
> On Monday, March 4, 2019 at 6:23:01 PM UTC+10, Travis Scrimshaw wrote:
>>
>> I am trying to install the line_profiler to do %lprun, but I am getting the 
>> following error:
>>
>> uqtscrim@SMP-36PQ8T2:~/sage$ sage --pip install line_profiler
>> pip is configured with locations that require TLS/SSL, however the ssl 
>> module in Python is not available.
>> Collecting line_profiler
>>   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/line-profiler/
>>   Retrying (Retry(total=3, 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/line-profiler/
>>   Retrying (Retry(total=2, 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/line-profiler/
>>   Retrying (Retry(total=1, 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/line-profiler/
>>   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/line-profiler/
>>   Could not fetch URL https://pypi.org/simple/line-profiler/: There was a 
>> problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', 
>> port=443): Max retries exceeded with url: /simple/line-profiler/ (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 line_profiler 
>> (from versions: )
>> No matching distribution found for line_profiler
>> pip is configured with locations that require TLS/SSL, however the ssl 
>> module in Python is not available.
>> Could not fetch URL https://pypi.org/simple/pip/: There was a problem 
>> confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', 
>> port=443): Max retries exceeded with url: /simple/pip/ (Caused by 
>> SSLError("Can't connect to HTTPS URL because the SSL module is not 
>> available.",)) - skipping
>>
>> I do have openssl installed on this machine (before building Sage). Any 
>> thoughts about what to do on this? (I verified that running directly running 
>> "pip install line_profiler" worked.)
>>
>> Thanks,
>> Travis
>>
>>
> --
> 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.

-- 
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