[Scipy-tickets] [SciPy] #1894: scipy.io.loadmat() --- File "/usr/lib/python2.7/dist-packages/scipy/io/matlab/mio5.py", line 224, in read_var_header stream = BytesIO(dcor.decompress(data)) SystemError: ../Objects/stringobject.c:3899: bad argument to internal

SciPy Trac scipy-tickets@scipy....
Sat Apr 20 11:17:35 CDT 2013


#1894: scipy.io.loadmat()  --- File "/usr/lib/python2.7/dist-
packages/scipy/io/matlab/mio5.py", line 224, in read_var_header     stream
= BytesIO(dcor.decompress(data)) SystemError:
../Objects/stringobject.c:3899: bad argument to internal
------------------------+---------------------------------------------------
 Reporter:  ncphillips  |       Owner:  MatthewBrett
     Type:  defect      |      Status:  new         
 Priority:  low         |   Milestone:  Unscheduled 
Component:  scipy.io    |     Version:  0.12.0      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by pv):

 This sample file seems also malformed, I can't load it in Matlab (R2011b)
 either:
 {{{
 >> r=load('state-Chromosome-damagedBases.mat');
 Warning: Variable 'data' originally saved as a
 edu.stanford.covert.util.CircularSparseMat cannot be instantiated
 as an object and will be read in as a uint32.
 >> r

 r =

     data: [6x1 uint32]

 >> r.data

 ans =

   3707764736
            2
            1
            1
            1
            1
 }}}

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


More information about the Scipy-tickets mailing list