Can you get a gdb backtrace? Mike
On 07/08/2010 12:13 PM, Tony S Yu wrote: > The recent "nasty import behavior" thread motivated me to post an issue I've > been having with matplotlib and chaco. (I've posted to the Chaco list > previously, without much luck.) > > If I import matplotlib and chaco at the same time, I get a segmentation fault > in the _path.so plugin. Below is a simple script that segfaults on my > computer. > > I should note that this is installation dependent; someone on the Chaco list > only had the issue with certain versions of Python. Just for reference, I'm > on OS X 10.6, Python 2.6.1, and matplotlib/chaco trunk. > > -Tony > > P.S. In reality, there's no reason to import matplotlib when using Chaco, but > I have some helper modules with some tangled imports (i.e. need to be > refactored). > > #--- > > import matplotlib.pyplot as plt > > import enthought.traits.api as traits > import enthought.traits.ui.api as ui > import enthought.chaco.api as chaco > from enthought.enable.component_editor import ComponentEditor > > > class LinePlot(traits.HasTraits): > plot = traits.Instance(chaco.Plot) > traits_view = ui.View( > ui.Item('plot', editor=ComponentEditor()), > width=500, height=500, resizable=True) > > def __init__(self): > plotdata = chaco.ArrayPlotData(x=[1,2,3], y=[1,2,3]) > self.plot = chaco.Plot(plotdata) > self.plot.plot(('x', 'y')) > > viewer = LinePlot() > viewer.configure_traits() > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel