The automatic installation of CLASS wasn't working, so I used the manual installation instead (following directions at https://cobaya.readthedocs.io/en/devel/theory_class.html). It did seem to load properly and it worked when tested without Cobaya. However, when used with Cobaya, an error message comes up saying classy.classy not found.
I tried to set the path within Cobaya to point within the right directory, but no luck so far. Is there some extra step you need to do to make CLASS connect with Cobaya?
Cobaya: Difficulties Connecting Manually Installed CLASS to Cobaya
-
- Posts: 37
- Joined: April 15 2013
- Affiliation: RWTH Aachen
- Contact:
Re: Cobaya: Difficulties Connecting Manually Installed CLASS to Cobaya
Hi Batia,
Strange! If CLASS seemed to be installed correctly, the only thing I can think of right now is that maybe you are installing CLASS and Cobaya for different Python installations/versions?
The following command will give you the Python installation used for Cobaya:
This should output something like
Now go back to CLASS' root folder, and re-do the "make" command as
where "XXX" is the output of the command above.
Strange! If CLASS seemed to be installed correctly, the only thing I can think of right now is that maybe you are installing CLASS and Cobaya for different Python installations/versions?
The following command will give you the Python installation used for Cobaya:
Code: Select all
head -n 1 $(which cobaya-run) | cut -c 3-
Code: Select all
!/usr/bin/python3
Code: Select all
PYTHON=XXX make