Hi David,
> I notice that you’re running a new Python from /usr/local. I guess that means you compiled it yourself. It looks like it’s not set up for SSL. That doesn’t happen automatically
Yes I had to tweak the configure file to get SSL work. I believed it’s now working but maybe something is still wrong.
> however 14.04 is really, really old. I suspect you are going to encounter other issues building Firedrake there. Can you not upgrade to a more recent LTS release?
Exactly. This is my last attempt to get firedrake work without upgrading Ubuntu, as it might require physical access to the machine and I have been just lazy to be there.
All the best,
Hiroe
From:
"Ham, David A" <david.ham@imperial.ac.uk>
Date: Monday, 6 December 2021 at 12:39
To: "Yamazaki, Hiroe" <h.yamazaki@imperial.ac.uk>, firedrake <firedrake@imperial.ac.uk>
Subject: Re: firedrake install failed when downloading Eigen
Hi Hiroe,
I notice that you’re running a new Python from /usr/local. I guess that means you compiled it yourself. It looks like it’s not set up for SSL. That doesn’t happen automatically.
You can find instructions on how to do this online, however 14.04 is really, really old. I suspect you are going to encounter other issues building Firedrake there. Can you not upgrade to a more recent LTS release?
Yours,
David
From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Yamazaki, Hiroe <h.yamazaki@imperial.ac.uk>
Date: Monday, 6 December 2021 at 12:13
To: firedrake <firedrake@imperial.ac.uk>
Subject: [firedrake] firedrake install failed when downloading Eigen
Hi firedrake team,
I am installing firedrake on my Ubuntu 14.04 and failed when downloading Eigen due to ssl.SSLCertVerificationError.
Some of the error messages are as below, and I’ve attached firedrake-install.log.
Any help to fix this would be appreciated.
All the best,
Hiroe
***
Downloading Eigen from 'https://github.com/eigenteam/eigen-git-mirror/archive/3.3.3.tar.gz' to 'eigen-3.3.3.tgz'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/urllib/request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/local/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/usr/local/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/usr/local/lib/python3.7/http/client.py", line 1392, in connect
server_hostname=server_hostname)
File "/usr/local/lib/python3.7/ssl.py", line 412, in wrap_socket
session=session
File "/usr/local/lib/python3.7/ssl.py", line 850, in _create
self.do_handshake()
File "/usr/local/lib/python3.7/ssl.py", line 1108, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "firedrake-install", line 1649, in <module>
install("petsc/")
File "firedrake-install", line 882, in install
build_and_install_petsc()
File "firedrake-install", line 995, in build_and_install_petsc
urllib.request.urlretrieve(url, filename=tarball)
File "/usr/local/lib/python3.7/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/local/lib/python3.7/urllib/request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)>
***