[Scipy-tickets] [SciPy] #278: AttributeError: gettypecode not found

SciPy scipy-tickets at scipy.net
Fri Oct 6 08:45:27 CDT 2006

#278: AttributeError: gettypecode not found
 Reporter:  nils      |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  scipy.io  |     Version:          
 Severity:  normal    |    Keywords:          
 I cannot write a sparse matrix to a Matrix Market formatted file.
   File "/usr/lib64/python2.4/site-packages/scipy/io/mmio.py", line 269, in
     typecode = a.gettypecode()
   File "/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", line
 237, in __getattr__
     raise AttributeError, attr + " not found"
 AttributeError: gettypecode not found
 >>> A
 <2x2 sparse matrix of type '<type 'numpy.float64'>'
         with 4 stored elements (space for 8)
         in Compressed Sparse Column format>
 I am using
 >>> numpy.__version__
 >>> scipy.__version__

Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/278>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list