X Tutup
Skip to content

Running into problems in seaborn after upgrading matpltolib #7709

@amelio-vazquez-reina

Description

@amelio-vazquez-reina

This may be a problem coming from seabornso I apologize if this is not the right place. I run into this after upgrading matplotlib to the latest version in the channel conda-forge.

(I also upgraded seaborn to the latest version on master without luck).

Any insight of what could be wrong would be very helpful!

---> 36 import seaborn as sns
     37 import matplotlib.pyplot as plt
     38 from matplotlib.ticker import MultipleLocator, LogLocator, MaxNLocator, NullLocator

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/seaborn/__init__.py in <module>()
      4 
      5 # Import seaborn objects
----> 6 from .rcmod import *
      7 from .utils import *
      8 from .palettes import *

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/seaborn/rcmod.py in <module>()
      6 import matplotlib as mpl
      7 
----> 8 from . import palettes, _orig_rc_params
      9 
     10 

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/seaborn/palettes.py in <module>()
     10 from .external.six.moves import range
     11 
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
     13 from .xkcd_rgb import xkcd_rgb
     14 from .crayons import crayons

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/seaborn/utils.py in <module>()
     10 import matplotlib as mpl
     11 import matplotlib.colors as mplcol
---> 12 import matplotlib.pyplot as plt
     13 
     14 from distutils.version import LooseVersion

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/pyplot.py in <module>()
    112 
    113 from matplotlib.backends import pylab_setup
--> 114 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
    115 
    116 _IP_REGISTERED = None

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/backends/__init__.py in pyla
b_setup()                                                                                          
     30     # imports. 0 means only perform absolute imports.
     31     backend_mod = __import__(backend_name,
---> 32                              globals(),locals(),[backend_name],0)
     33 
     34     # Things we pull in from all backends

/Users/amelio/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/backends/backend_macosx.py i
n <module>()                                                                                       
     22 
     23 import matplotlib
---> 24 from matplotlib.backends import _macosx
     25 
     26 

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 Working with Matplotlib in a virtual enviroment see 'Working with Matplotlib in Virtual environments' in the Matplotlib FAQ                            

Relevant entries from pip freeze

seaborn==0.8.dev0
matplotlib==1.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup