[SciPy-dev] Segfault

Travis Oliphant oliphant.travis at ieee.org
Thu Apr 27 10:23:42 CDT 2006

Nils Wagner wrote:
> Hi all,
> I am going to visualize the sparsity pattern of large matrices using
> numpy/scipy/matplotlib.
> I received a segfault running the following script
> from pylab import show, plot, axis, xlabel, subplot, title, spy
> from scipy import *
> K = io.mmread('k.mtx')
> M = io.mmread('m.mtx')
> print 'Reading finished'
> K = K.todense()
> spy(K)
> show()

Thanks for the traceback.  It looks like an error was not being caught.  
This is now fixed in SVN f2py.  Your code should now raise an error that 
is occurring in trying to convert an object to an array in mmread...


More information about the Scipy-dev mailing list