j-faria / kima

Exoplanet detection in RVs with DNest4 and GPs
http://www.kima.science
MIT License
15 stars 10 forks source link

Problem with kima-showresults on OS X #47

Open j-faria opened 6 years ago

j-faria commented 6 years ago

On a Mac, kima-showresults fails because of matplotlib, which in turn fails because it's run with a non-application python. It seems that in OS X the anaconda installation of python has both a python and a pythonw executable. I think the scripts should use pythonw.

To Reproduce

Fresh kima install, python setup.py install and call kima-showresults This seems to happen on Python 2.7, not tested on 3.x Importing and using pykima from within IPython seems to work fine...

Possible solution

replace console_scripts with gui_scripts in the setup.py file?

saeedm31 commented 2 years ago

I got the "ValueError: Failed to find font DejaVu Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.0, and fallback to the default font was disabled" in mac os I solved with: $ python3 -m venv mpltest $ source mpltest/bin/activate $ pip install matplotlib and then $ kima-showresults all