Small bug fix in the Planck Likelihood Code

30th April 2021

When working on the Hubble rate project, I am led to install Montepython to perform Markov Chain Monte Carlo sampling with Planck 2018 data. The Planck 2018 data can be downloaded from the Planck Legacy Archive together with the Planck Likelihood Code (plc), which provides C, Fortran and Python libraries allowing to compute the log likelihoods of the temperature, polarisation, and lensing maps. See of plc-3.01.

Following the documentation of Montepython, one needs to configure plc before installing it,

$ ./waf configure --lapack_mkl=${MKLROOT} --install_all_deps

which essentially checks and installs dependencies. Now, if no cfitsio has been installed, the program probably hangs during its automatic installation, before hitting a timeout error. This error occurs with COM_Likelihood_Code-v3.0_R3.01.


The error results from an attempt to download the file,

This looks suspicious in 2021 as major browsers are stopping FTP support, See and and websites are probably moving to more secure protocols, too.

It is indeed the case here, and the solution is to replace the above url by, Alternatively, choose to specify a version. Note that v3.28 is not released this way and v3.49 is the closest available.

in ./waf_tools/ After downloading the package, automatic installation of cfitsio could still run into errors due to change in naming convention. Rename the path cfitsio-VERSION inside ./build to cfitsio and the problem is fully solved.


The May 10th 2021 update of plc fixes this bug.

(Last updated on 06/01/2022)

All logs | Working with multiple branches 1