I have installed CosmoMC (the latest version cloned from Github, including getdist inside) and it successfully generated MCMC chains for a test. The generated files consist of [test.ranges, test.likelihoods, test.paramnames, test.inputparams, test_1.txt, test_1.data, ……test_8.txt, test_8.data]. Then I ran getdist by the command "./getdist distparams.ini" , it produced some files [test.py, test_tri.py, test_3D.py, test.margestats, test.likestats, test.covmat, test.corr]. However when I tried to make plots by "python test.py", I got the following error [ No module named 'getdist.chain_grid']
Code: Select all
[test@single outout]$ python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import getdist.plots as plots, os
File "/home/myname/CosmoMC-master/python/getdist/plots.py", line 27, in <module>
from getdist.chain_grid import is_grid_object, get_chain_root_files, ChainDirGrid, load_supported_grid
File "/opt/intel/oneapi/intelpython/python3.7/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'getdist.chain_grid'
Code: Select all
(py39forge) [test@single python]$ python GetDistGUI.py
Traceback (most recent call last):
File "/home/myname/CosmoMC-master/python/GetDistGUI.py", line 12, in <module>
getdist_gui()
File "/home/myname/CosmoMC-master/python/getdist/command_line.py", line 337, in getdist_gui
from getdist.gui.mainwindow import run_gui
File "/home/myname/CosmoMC-master/python/getdist/gui/mainwindow.py", line 40, in <module>
from getdist import plots, IniFile, chains
File "/home/myname/CosmoMC-master/python/getdist/plots.py", line 27, in <module>
from getdist.chain_grid import is_grid_object, get_chain_root_files, ChainDirGrid, load_supported_grid
ModuleNotFoundError: No module named 'getdist.chain_grid'