[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....
Thu Apr 18 13:00:03 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:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  high        |   Milestone:  Unscheduled
Component:  Other       |     Version:  0.12.0     
 Keywords:              |  
------------------------+---------------------------------------------------
 When trying to load a 75MB .mat file into python with scipy I received the
 following error.

 {{{

 Traceback (most recent call last):
   File "prop_keys.py", line 34, in <module>
     prop_d = scipy.io.loadmat(prop)
   File "/usr/lib/python2.7/dist-packages/scipy/io/matlab/mio.py", line
 175, in loadmat
     matfile_dict = MR.get_variables(variable_names)
   File "/usr/lib/python2.7/dist-packages/scipy/io/matlab/mio5.py", line
 272, in get_variables
     hdr, next_position = self.read_var_header()
   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
 function
 }}}

 Here is a link to the file:
 https://docs.google.com/file/d/0BwitLOvMDE9KZ2JaaEdrZ3FCMlk/edit?usp=sharing

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


More information about the Scipy-tickets mailing list