Fail to run : `virtual-ipm-gui` in OSX
Environment
- Virtual-IPM version: 1.3.5
- Operating system: OSX (catalina) 10.15.5
- Python environment: Python 3.6.10 :: Anaconda, Inc.
anna==0.3.5
certifi==2020.6.20
cycler==0.10.0
docutils==0.16
injector==0.12.1
ionics==0.2.3
matplotlib==2.1.1
numpy==1.18.0
pandas==0.23.4
pyhocon==0.3.38
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2020.1
Rx==1.5.9
scipy==1.1.0
six==1.11.0
tornado==4.5.2
typing==3.7.4.3
virtual-ipm==1.3.5 - Configuration: N.A
Description
Fail to run : virtual-ipm-gui
The error seems to come from matplotlib
that requires a framework build of python to work properly on OSX.
I have installed said framework build in my 'virtual-ipm' enviroment using conda install python.app
but I still get the error when running virtual-ipm-gui
.
My current fix for the issue is to run start_gui.py
directly from the package install folder using pythonw start_gui.py
instead of doing virtual-ipm-gui
.
Traceback
(Virtual-IPM) MacBook-Pro:psbgi_with_magnet_sim swannlevasseur$ virtual-ipm-gui
Traceback (most recent call last):
File "/Applications/anaconda3/envs/Virtual-IPM/bin/virtual-ipm-gui", line 7, in <module>
from virtual_ipm.start_gui import main
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/virtual_ipm/start_gui.py", line 26, in <module>
from virtual_ipm.frontends.gui import MainWindow
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/virtual_ipm/frontends/gui/__init__.py", line 21, in <module>
from .mainwindow import MainWindow
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/virtual_ipm/frontends/gui/mainwindow.py", line 32, in <module>
from .simulation.views import MainView as SimulationView
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/virtual_ipm/frontends/gui/simulation/views.py", line 27, in <module>
import matplotlib.pyplot as plt
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/matplotlib/pyplot.py", line 116, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 60, in pylab_setup
[backend_name], 0)
File "/Applications/anaconda3/envs/Virtual-IPM/lib/python3.6/site-packages/matplotlib/backends/backend_macosx.py", line 17, in <module>
from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
Additional information
I have no problem running virtual-ipm
.
Output of conda list
:
(While looking at it, i just saw that pip copied a lot of packages that conda had already installed, I hope this did not cause the issue..)
anna 0.3.5
ca-certificates 2020.6.24 0
certifi 2020.6.20 py36_0
cycler 0.10.0 py36hfc81398_0
dbus 1.10.22 h50d9ad6_0
docutils 0.16
expat 2.2.5 hb8e80ba_0
freetype 2.8 h12048fb_1
gettext 0.19.8.1 h15daf44_3
glib 2.53.6 h33f6a65_2
icu 58.2 h4b95b61_1
injector 0.12.1
intel-openmp 2018.0.0 h8158457_8
ionics 0.2.3
jpeg 9b he5867d9_2
libcxx 4.0.1 h579ed51_0
libcxxabi 4.0.1 hebd6815_0
libedit 3.1.20191231 h1de35cc_1
libffi 3.2.1 h475c297_4
libgfortran 3.0.1 h93005f0_2
libiconv 1.15 hdd342a3_7
libpng 1.6.32 hd1e8b91_4
matplotlib 2.1.0 py36h5068139_0
matplotlib 2.1.1
mkl 2018.0.1 hfbd8650_4
ncurses 6.2 h0a44026_1
numpy 1.13.3 py36h2cdce51_0
numpy 1.18.0
openssl 1.1.1g h1de35cc_0
pandas 0.23.4
pcre 8.41 hfb6ab37_1
pip 9.0.1 py36h1555ced_4
pip 20.1.1
pyhocon 0.3.38
pyparsing 2.4.7
pyparsing 2.2.0 py36hb281f35_0
pyqt 5.6.0 py36he5c6137_6
python 3.6.10 hfe9666f_1
python-dateutil 2.8.1
python-dateutil 2.6.1 py36h86d2abb_1
python.app 2 py36_10
pytz 2020.1
pytz 2017.3 py36hf0bf824_0
qt 5.6.2 h9975529_14
readline 7.0 hc1231fa_4
Rx 1.5.9
scipy 1.1.0
scipy 1.0.0 py36h1de22e9_0
setuptools 49.2.0
setuptools 36.5.0 py36h2134326_0
sip 4.18.1 py36h2824476_2
six 1.11.0 py36h0e22d5e_1
sqlite 3.32.3 hffcf06c_0
tk 8.6.10 hb0a8c7a_0
tornado 4.5.2 py36h468dda9_0
typing 3.7.4.3
virtual-ipm 1.3.5
wheel 0.30.0 py36h5eb2c71_1
xz 5.2.5 h1de35cc_0
zlib 1.2.11 hf3cbc9b_2