CobayaSampler / cobaya

Code for Bayesian Analysis
http://cobaya.readthedocs.io/en/latest/
Other
128 stars 127 forks source link

class and planck_2018_lowl.TT OS error during cosmology requisites installation #205

Closed camarman closed 3 years ago

camarman commented 3 years ago

Hello, I am a master's student in physics, and I have just started to learn cobaya.

I was trying to download cosmology requisites via cobaya-install cosmo -m /path/to/packages as written in the docs. However, I came across this issue.

PS C:\Users\Arman\Desktop\Github\Cobaya> cobaya-install cosmo -p C:\Users\Arman\Desktop\Github\Cobaya
[install] Installing basic cosmological packages.
[install] Installing external packages at 'C:\Users\Arman\Desktop\Github\Cobaya'

================================================================================
theory:camb
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
theory:classy
================================================================================

[install] Skipping 'classy' because it is not compatible with your OS.

================================================================================
likelihood:planck_2018_lowl.TT
================================================================================

[install] Skipping 'planck_2018_lowl.TT' because it is not compatible with your OS.

================================================================================
likelihood:planck_2018_lensing.native
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
likelihood:bicep_keck_2015
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
likelihood:sn.pantheon
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
likelihood:bao.sdss_dr12_consensus_final
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
likelihood:des_y1.joint
================================================================================

[install] Checking if dependencies have already been installed...
[install] External dependencies for this component already installed.
[install] Doing nothing.

================================================================================
* Summary *
================================================================================

[install] All requested components' dependencies correctly installed.
[install] The installation path has been written into the global config file: C:\Users\Arman\AppData\Local\cobaya\config.yaml

It seems that likelihood:planck_2018_lowl.TT and theory:classy cannot be downloaded due to OS-related issues. Do I have to use another OS to download these, or is there a way to fix this problem or maybe get around it? I am using Windows 10 as expected.

Thanks in advance

cmbant commented 3 years ago

Cobaya and camb will run on Windows, the planck likelihoods will not. Download the Ubuntu 20.04 virtual machine from the Windows Store, and install in that. (you may need to change/upgrade your Windows' WSL settings - with WSL2 is works nicely for me).

camarman commented 3 years ago

I have tried that, and it worked in WSL2. I have managed to download likelihoods without a problem. I guess I can run any model now. Thanks for the help.