Dear Antony,
We are trying to work with cobaya, but when try to do the instalation of Cosmo:
cobaya-install cosmo -p /path
We obtain the following error messages:
[install] *ERROR* The installation (or installation test) of some component(s) has failed:
- theory:camb
- theory:classy
Check output of the installer of each component above for precise error info.
[exception handler] ---------------------------------------
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/bin/cobaya-install", line 8, in <module>
sys.exit(install_script())
^^^^^^^^^^^^^^^^
File "/opt/homebrew/anaconda3/lib/python3.12/site-packages/cobaya/install.py", line 637, in install_script
install(*infos, path=getattr(arguments, packages_path_arg), logger=logger,
File "/opt/homebrew/anaconda3/lib/python3.12/site-packages/cobaya/install.py", line 358, in install
raise LoggedError(
cobaya.log.LoggedError: The installation (or installation test) of some component(s) has failed:
- theory:camb
- theory:classy
Check output of the installer of each component above for precise error info.
Can you help us to solve this error, please?
Best Regards,
Clara
About the instalation of cosmo with cobaya
-
- Posts: 30
- Joined: May 11 2005
- Affiliation: Yachay TECH University
-
- Posts: 30
- Joined: May 11 2005
- Affiliation: Yachay TECH University
Re: About the instalation of cosmo with cobaya
Dear Antony,
Finally I can to install CAMB and CLASS but I still have problems with the likehood of Planck, I try doing
cobaya-install planck_2018_highl_plik.TTTEEE
I obtain the same error that I obtained when try to install using waf
Checking for program 'gcc, cc' : /usr/local/bin/gcc
gcc not found(cause : Could not find gcc/g++ (only Clang), if renamed try eg: CC=gcc48 CXX=g++48 waf configure
(complete log in /Users/crojas/Documents/Research/inflation/camb/code/planck/clik-main/build/config.log))
Checking for program 'icc, ICL' : not found
icc not found (cause : Could not find the program ['icc', 'ICL']
(complete log in /Users/crojas/Documents/Research/inflation/camb/code/planck/clik-main/build/config.log))
Checking for program 'clang' : /usr/local/bin/clang
Checking for program 'llvm-ar, ar' : /opt/homebrew/anaconda3/bin/ar
Checking for program 'ar' : /opt/homebrew/anaconda3/bin/ar
Check clang version : Apple clang version 16.0.0 (clang-1600.0.24.1)
Compile a test code with clang : failed
No suitable c compiler found (cause: 'The configuration failed
Any suggestion?
Best Regards,
Clara
Finally I can to install CAMB and CLASS but I still have problems with the likehood of Planck, I try doing
cobaya-install planck_2018_highl_plik.TTTEEE
I obtain the same error that I obtained when try to install using waf
Checking for program 'gcc, cc' : /usr/local/bin/gcc
gcc not found(cause : Could not find gcc/g++ (only Clang), if renamed try eg: CC=gcc48 CXX=g++48 waf configure
(complete log in /Users/crojas/Documents/Research/inflation/camb/code/planck/clik-main/build/config.log))
Checking for program 'icc, ICL' : not found
icc not found (cause : Could not find the program ['icc', 'ICL']
(complete log in /Users/crojas/Documents/Research/inflation/camb/code/planck/clik-main/build/config.log))
Checking for program 'clang' : /usr/local/bin/clang
Checking for program 'llvm-ar, ar' : /opt/homebrew/anaconda3/bin/ar
Checking for program 'ar' : /opt/homebrew/anaconda3/bin/ar
Check clang version : Apple clang version 16.0.0 (clang-1600.0.24.1)
Compile a test code with clang : failed
No suitable c compiler found (cause: 'The configuration failed
Any suggestion?
Best Regards,
Clara
-
- Posts: 30
- Joined: May 11 2005
- Affiliation: Yachay TECH University
Re: About the instalation of cosmo with cobaya
Hi again,
I do not sure what I did but now when a run the command:
cobaya cobaya-install planck_2018_highl_plik.TTTEEE
I obtained the following error:
Traceback (most recent call last):
File "/opt/homebrew/bin/cobaya", line 8, in <module>
sys.exit(run_command())
File "/opt/homebrew/lib/python3.9/site-packages/cobaya/__main__.py", line 15, in run_command
metadata.entry_points().select(group="console_scripts")
AttributeError: 'dict' object has no attribute 'select'
Any idea what is the problem?
Thanks very much,
Clara
I do not sure what I did but now when a run the command:
cobaya cobaya-install planck_2018_highl_plik.TTTEEE
I obtained the following error:
Traceback (most recent call last):
File "/opt/homebrew/bin/cobaya", line 8, in <module>
sys.exit(run_command())
File "/opt/homebrew/lib/python3.9/site-packages/cobaya/__main__.py", line 15, in run_command
metadata.entry_points().select(group="console_scripts")
AttributeError: 'dict' object has no attribute 'select'
Any idea what is the problem?
Thanks very much,
Clara
-
- Posts: 1980
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: About the instalation of cosmo with cobaya
You don't want the first "cobaya", just "cobaya-install".
There are native python Planck likelihoods available with Cobaya that avoid clik.
There are native python Planck likelihoods available with Cobaya that avoid clik.
-
- Posts: 30
- Joined: May 11 2005
- Affiliation: Yachay TECH University
Re: About the instalation of cosmo with cobaya
Dear Antony,
Thanks for your soon answer.
I have a mistake when copy the question yesterday, I actually running the command:
cobaya-install planck_2018_highl_plik.TTTEEE
And I found the following error:
The configuration failed
(complete log in /Users/crojas/Documents/Research/inflation/code/planck/clik-main/build/config.log)
[clik] *ERROR* Configuration failed!
[planck_2018_highl_plik.TTTEEE] *WARNING* clik code installation failed! Try configuring+compiling by hand at /Users/crojas/Documents/Research/inflation/code/planck
[install] *ERROR* Installation failed! Look at the error messages above. Solve them and try again, or, if you are unable to solve them, install the packages required by this component manually.
Thanks,
Clara
Thanks for your soon answer.
I have a mistake when copy the question yesterday, I actually running the command:
cobaya-install planck_2018_highl_plik.TTTEEE
And I found the following error:
The configuration failed
(complete log in /Users/crojas/Documents/Research/inflation/code/planck/clik-main/build/config.log)
[clik] *ERROR* Configuration failed!
[planck_2018_highl_plik.TTTEEE] *WARNING* clik code installation failed! Try configuring+compiling by hand at /Users/crojas/Documents/Research/inflation/code/planck
[install] *ERROR* Installation failed! Look at the error messages above. Solve them and try again, or, if you are unable to solve them, install the packages required by this component manually.
Thanks,
Clara
-
- Posts: 1980
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: About the instalation of cosmo with cobaya
Sounds like a problem with clik (as usual..), not cobaya.
Make sure you can install and use clik separately first before trying with cobaya.
Make sure you can install and use clik separately first before trying with cobaya.
-
- Posts: 30
- Joined: May 11 2005
- Affiliation: Yachay TECH University
Re: About the instalation of cosmo with cobaya
Hi Antony!
Thanks very much for your help!
Best Regards,
Clara
Thanks very much for your help!
Best Regards,
Clara