jupyter / declarativewidgets

[RETIRED] Jupyter Declarative Widget Extension
http://jupyter.org/declarativewidgets/docs.html
Other
120 stars 38 forks source link

Error enabling on OSX with matplotlib 2.0 installed #554

Open parente opened 7 years ago

parente commented 7 years ago
(dashboards) ~/p/dashboards ❯❯❯ jupyter declarativewidgets quick-setup --sys-prefix                    fix-289-notebook-5.0-compat ✭ ✚ ✱ ◼
Traceback (most recent call last):
  File "/Users/parente/miniconda3/envs/dashboards/bin/jupyter-declarativewidgets", line 7, in <module>
    from declarativewidgets.extensionapp import main
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/__init__.py", line 57, in <module>
    from .widget_function import Function
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/widget_function.py", line 7, in <module>
    from .util.serializer import Serializer
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/util/serializer.py", line 19, in <module>
    from .serializers import BaseSerializer
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/util/serializers.py", line 106, in <module>
    class MplFigureSerializer(BaseSerializer):
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/util/serializer_registrar.py", line 15, in __init__
    if cls.check_packages():
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/declarativewidgets/util/serializers.py", line 128, in check_packages
    import matplotlib.pyplot
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/Users/parente/miniconda3/envs/dashboards/lib/python3.6/site-packages/matplotlib/backends/backend_macosx.py", line 19, 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.