Page 1 of 1

Trouble running GetDistGUI.py

Posted: August 02 2017
by Richard Hall
Hi I've recently installed GetDist to plot distributions from a MCMC script I use.

I'm trying to run the GetDistGUI.py but am getting this error message:

Code: Select all

Could not find getdist.gui.mainwindow: configure your PYTHONPATH as described in the readme!
In the readme it doesn't mention anything about PYTHONPATH (not that I can see), any ideas?

I'm running MacOSX 10.12.5, python 2.7.11, I have installed all the relevant dependencies with pip, I can run the setup.py file in the GetDist directory and all the tests pass.

Thanks!

Re: Trouble running GetDistGUI.py

Posted: August 02 2017
by Antony Lewis
The error is when getdist is not in your path (e.g. "import getdist" will fails). You installed using pip, or ran setup.py install, the path should be fine. If installed from git, then need to include the relevant path in PYTHONPATH.

The error might also come from some other missing import, also check the final exception message.

Re: Trouble running GetDistGUI.py

Posted: August 02 2018
by Emma Clarke
I am having a similar problem when trying to run GetDistGUI.py. My PYTHONPATH is configured and a couple weeks ago everything worked fine, but now I get the following errors after running >python python/GetDistGUI.py:

Could not find getdist.gui.mainwindow: configure your PYTHONPATH as described in the readme!
Traceback (most recent call last):
File "python/GetDistGUI.py", line 16, in <module>
from getdist.gui.mainwindow import MainWindow
File "/Users/emma/CosmoMC/python/getdist/gui/mainwindow.py", line 18, in <module>
from getdist.gui import SyntaxHighlight
File "/Users/emma/CosmoMC/python/getdist/gui/SyntaxHighlight.py", line 3, in <module>
from PySide.QtCore import QRegExp
ImportError: No module named PySide.QtCore

Any idea what I can try fixing?

Re: Trouble running GetDistGUI.py

Posted: August 03 2018
by Antony Lewis
This actually looks like an issue with your PySide installation.