Thanks for suggestion.
I checked and I already have installed libssl-dev (from the time I compiled 
version 6.4 probably) which I think is the debian equivalent of 
openssl-devel. To be sure I did recompile Python in sage and still get the 
same error with ssl validation.


On Monday, April 20, 2015 at 4:16:24 PM UTC+2, Volker Braun wrote:
>
> You don't have ssl (the C library, not the python wrapper)
>
> Install openssl-devel in your distribution (e.g. yum install 
> openssl-devel) and then recompile Python (sage -f python).
>
>
>
> On Monday, April 20, 2015 at 9:43:40 AM UTC-4, ota.s...@gmail.com wrote:
>>
>> Sorry for the delay, but only now I got time to try your suggestion 
>> ("sage -pip install pyopenssl").
>>
>> However, I got into trouble with downloading the package due to 
>> certificate validation problem. I have as well tried to install certifi 
>> package but obviously I got the same error (see the log below).
>>
>> -----------------------------------------------------------------------------------------------------------------------
>> cat  /home/sagerunner/.pip/pip.log          
>> ------------------------------------------------------------
>> /work/software/sage/sage-6.5/local/bin/pip run on Mon Apr 20 15:16:18 2015
>> Downloading/unpacking pyopenssl
>>   Getting page https://pypi.python.org/simple/pyopenssl/
>>   Could not fetch URL https://pypi.python.org/simple/pyopenssl/: 
>> connection error: [Errno 1] _ssl.c:510: error:14090086:SSL 
>> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>>   Will skip URL https://pypi.python.org/simple/pyopenssl/ when looking 
>> for download links for pyopenssl
>>   Getting page https://pypi.python.org/simple/
>>   Could not fetch URL https://pypi.python.org/simple/: connection error: 
>> HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries 
>> exceeded with url: /simple/ (Caused by <class 'httplib.CannotSendRequest'>: 
>> )
>>   Will skip URL https://pypi.python.org/simple/ when looking for 
>> download links for pyopenssl
>>   Cannot fetch index base URL https://pypi.python.org/simple/
>>   URLs to search for versions for pyopenssl:
>>   * https://pypi.python.org/simple/pyopenssl/
>>   Getting page https://pypi.python.org/simple/pyopenssl/
>>   Could not fetch URL https://pypi.python.org/simple/pyopenssl/: 
>> connection error: [Errno 1] _ssl.c:510: error:14090086:SSL 
>> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>>   Will skip URL https://pypi.python.org/simple/pyopenssl/ when looking 
>> for download links for pyopenssl
>>   Could not find any downloads that satisfy the requirement pyopenssl
>> Cleaning up...
>>   Removing temporary dir /tmp/pip_build_sagerunner...
>> No distributions at all found for pyopenssl
>> Exception information:
>> Traceback (most recent call last):
>>   File 
>> "/work/software/sage/sage-6.5/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py",
>>  
>> line 122, in main
>>     status = self.run(options, args)
>>   File 
>> "/work/software/sage/sage-6.5/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py",
>>  
>> line 278, in run
>>     requirement_set.prepare_files(finder, 
>> force_root_egg_info=self.bundle, bundle=self.bundle)
>>   File 
>> "/work/software/sage/sage-6.5/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py",
>>  
>> line 1177, in prepare_files
>>     url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
>>   File 
>> "/work/software/sage/sage-6.5/local/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/index.py",
>>  
>> line 277, in find_requirement
>>     raise DistributionNotFound('No distributions at all found for %s' % 
>> req)
>> DistributionNotFound: No distributions at all found for pyopenssl
>>
>>
>> -------------------------------------------------------------------------------------------
>>
>> Is there any way how to switch of ssl verification or otherwise 
>> circumvent this issue?
>>
>> Thank you
>>
>>
>> On Friday, April 17, 2015 at 4:06:15 PM UTC+2, Volker Braun wrote:
>>>
>>> Pyopenssl spkg has been removed, use "sage -pip install pyopenssl" 
>>> instead
>>>
>>>
>>> On Friday, April 17, 2015 at 10:01:14 AM UTC-4, ota.s...@gmail.com 
>>> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I am trying to compile sage-6.5 with ssl support but when the command 
>>>> "./sage -i pyopenssl"
>>>> tries downloading the pyopenssl-0.13.p0.spkg package it gives error:
>>>> -------------------------------
>>>> IOError: [Errno 404] Not Found: '//
>>>> www.sagemath.org/spkg/optional/pyopenssl-0.13.p0.spkg'
>>>> Error: failed to download package pyopenssl-0.13.p0
>>>> -------------------------------
>>>> I went to the address with browser and I saw the package description in 
>>>> the list of optional packages "http://www.sagemath.org/spkg/optional/"; 
>>>> but when clicking pyopenssl-0.13.p0.spkg I get "page not found".
>>>>
>>>> Can someone update the web so that the package is download-able?
>>>>
>>>> Thank you
>>>> ota
>>>>
>>>

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to