Planck 2018 likelihood with COBAYA: 'ascii' codec can't decode byte 0xc2

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Thibaut Louis
Posts: 5
Joined: March 31 2011
Affiliation: LAL

Planck 2018 likelihood with COBAYA: 'ascii' codec can't decode byte 0xc2

Post by Thibaut Louis » September 29 2019

Hi,

I have installed COBAYA on NERSC and I have tried to also install the cosmology librairies
cobaya-install cosmo -m /path/to/modules
It works well but for the planck 2018 likelihood, this is a known problem, see for example:
viewtopic.php?f=11&t=3223
I have followed Karim instructions, and the installation seems to be succesful.
However when I try to run the MCMC chains:
cobaya-run pl2018.yaml
I get:
[input] *ERROR* Failed to get defaults for module 'likelihood:planck_2018_highl_plik.TTTEEE' ['ascii' codec can't decode byte 0xc2 in position 75: ordinal not in range(128)]
Note that the other likelihoods in the yalm: planck_2018_lowl.TT, planck_2018_lowl.EE work fine.
Anyone experienced the same issue?
Cheers and Thanks,

Thibaut

PS: I copy my module list here

1) modules/3.2.11.1
2) nsg/1.2.0
3) intel/19.0.3.199
4) craype-network-aries
5) craype/2.5.18 l
6) cray-libsci/19.02.1
7) udreg/2.3.2-7.0.0.1_4.28__g8175d3d.ari
8) ugni/6.0.14.0-7.0.0.1_7.32__ge78e5b0.ari
9) pmi/5.0.14
10) dmapp/7.1.1-7.0.0.1_5.26__g25e5077.ari
11) gni-headers/5.0.12.0-7.0.0.1_7.41__g3b1768f.ari
12) xpmem/2.2.17-7.0.0.1_3.25__g7acee3a.ari
13) job/2.2.4-7.0.0.1_3.34__g36b56f4.ari
14) dvs/2.11_2.2.140-7.0.0.1_13.1__gdf9ebba2
15) alps/6.6.50-7.0.0.1_3.41__g962f7108.ari
16) rca/2.2.20-7.0.0.1_4.39__g8e3fb5b.ari
17) atp/2.1.3
18) PrgEnv-intel/6.0.5
19) craype-haswell
20) cray-mpich/7.7.6
21) craype-hugepages2M
22) python/3.6-anaconda-5.2
23) openmpi/3.1.4
24) gcc/8.2.0
25) gsl/2.5
26) altd/2.0
27) darshan/3.1.7

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Planck 2018 likelihood with COBAYA: 'ascii' codec can't decode byte 0xc2

Post by Antony Lewis » September 30 2019

That .yaml file looks OK in the current git, the offset seems to be the line end. Do you see an 0xc2 in the file?

Thibaut Louis
Posts: 5
Joined: March 31 2011
Affiliation: LAL

Re: Planck 2018 likelihood with COBAYA: 'ascii' codec can't decode byte 0xc2

Post by Thibaut Louis » September 30 2019

Hi Antony,

Turns out that:

export LC_ALL=C.UTF-8
export LANG=C.UTF-8

solves the problem !
Cheers,

Thibaut

Jesus Torrado
Posts: 37
Joined: April 15 2013
Affiliation: RWTH Aachen
Contact:

Re: Planck 2018 likelihood with COBAYA: 'ascii' codec can't decode byte 0xc2

Post by Jesus Torrado » October 09 2019

Thanks for the fix, Thibaut!

(I cannot actually find any non-ascii character in the file though.)

Post Reply