[petsc-users] configure: Include urlopen exception string in download failure message

Aagaard, Brad T baagaard at usgs.gov
Tue Jan 14 10:09:50 CST 2025


I am using Python 3.12. The exception (SSL certificate issue) error string is not showing up in stdout (below) or the configure.log (attached). Relying on the error string to just show up seems fragile.


=============================================================================================
  Trying to download
  https://web.cels.anl.gov/projects/petsc/download/externalpackages/f2cblaslapack-3.8.0.q2.tar.gz
  for F2CBLASLAPACK
=============================================================================================

*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
  Error during download/extract/detection of F2CBLASLAPACK:
  Unable to download package F2CBLASLAPACK from:
  https://web.cels.anl.gov/projects/petsc/download/externalpackages/f2cblaslapack-3.8.0.q2.tar.gz
  * If URL specified manually - perhaps there is a typo?
  * If your network is disconnected - please reconnect and rerun ./configure
  * Or perhaps you have a firewall blocking the download
  * You can run with --with-packages-download-dir=/adirectory and ./configure will instruct
  you what packages to download manually
  * or you can download the above URL manually, to
  /yourselectedlocation/f2cblaslapack-3.8.0.q2.tar.gz
  and use the configure option:
  --download-f2cblaslapack=/yourselectedlocation/f2cblaslapack-3.8.0.q2.tar.gz
*********************************************************************************************




From: Satish Balay <balay.anl at fastmail.org>
Date: Tuesday, January 14, 2025 at 8:51 AM
To: Aagaard, Brad T <baagaard at usgs.gov>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
Subject: [EXTERNAL] Re: [petsc-users] configure: Include urlopen exception string in download failure message


 This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.



Last I visited this issue - its a python version issue. i.e newer versions [3.8+? 3.10+?] don't suppress this message - so it comes up in configure printed message.

Perhaps you can verify if this true for the issue you are seeing.

Satish

On Tue, 14 Jan 2025, Aagaard, Brad T via petsc-users wrote:

> The current implementation of Retrival.tarballRetrieve() does not capture the error string from an exception raised in a call to urlopen(). This makes it difficult to diagnose download failures. Can you add the error string from the exception to the download failure message (maybe as an optional argument to getDownloadFailureMessage())? This is at lines 205-208 of config/BuildSystem/retrieval.py.
>
> Thanks,
> Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250114/0aae5071/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log.gz
Type: application/x-gzip
Size: 244681 bytes
Desc: configure.log.gz
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250114/0aae5071/attachment-0001.gz>


More information about the petsc-users mailing list