cmbant/getdist

Running getdist-gui on macOS Catalina

Closed this issue · 1 comments

Hi,

I installed getdist, following the instructions and successfully testing:
$ pip install getdist
$ python -m unittest getdist.tests.getdist_test

But when I try to use getdist-gui I get an error message:
"""
LSOpenURLsWithRole() failed for the application /Users/talabadi/opt/anaconda3/lib/python3.8/site-packages/getdist/gui/GetDist GUI.app with error -10810.
Error running 'GetDist GUI.app'. This may be a Catalina issue, any ideas?
Attempting to run script directly, using non-unified menus.
objc[5165]: Class RunLoopModeTracker is implemented in both /Users/talabadi/opt/anaconda3/lib/python3.8/site-packages/PySide2/Qt/lib/QtCore.framework/Versions/5/QtCore (0x11e124268) and /Users/talabadi/opt/anaconda3/lib/libQt5Core.5.9.7.dylib (0x1241d1a80). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7fa20f1a1af0) is not the object's thread (0x7fa20f1abcc0).
Cannot move to target thread (0x7fa20f1a1af0)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen.

zsh: abort getdist-gui
"""

I tried uninstalling and reinstalling getdist and PySide2, but it did not fix the problem.

I use Anaconda3 as my python (version 3.8.5).

Please help. Thanks.

I followed the tip for creating environment with Anaconda and it worked just fine.