File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # How to diagnose where a segfault is occurring
2+
3+ First thing to try is simply rm -rf the site-packages/matplotlib and
4+ build subdirs and get a clean install. Installing a new version over
5+ a pretty old version has been known to cause trouble, segfault, etc.
6+
7+ Try importing these packages individually
8+
9+ import matplotlib._image
10+ import matplotlib._transforms
11+
12+ #one of these three depending on which numerix package you are using
13+ import matplotlib.backends._na_backend_agg # for numarray
14+ import matplotlib.backends._nc_backend_agg # for Numeric
15+ import matplotlib.backends._ns_backend_agg # for numpy
16+
17+ import matplotlib.backends._tkagg
18+ import matplotlib._agg
19+
20+
21+ If the last two work and the others don't, it is likely you need to
22+ upgrade your gcc, because on some platforms (OS X for sure) old
23+ versions of gcc cannot compile new versions of pycxx, which matplotlib
24+ uses for building some but not all of it's extensions. Report back
25+ which if any work or segfault or raise tracebacks,
26+
27+ If that shed additional light, again flush the build and install dirs,
28+ and try setting VERBOSE=True in setup.py before doing a clean install.
29+ The VERBOSE setting will generate lots of extra output and may help
30+ indicate where the segfault is occurring
You can’t perform that action at this time.
0 commit comments