python - Scipy.loadmat() ---- SystemError: ../Objects/stringobject.c:3899: bad argument to internal function -


i'm trying load .mat file python quite large ( >75mb) , getting following error. can helped?

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 internal function 

as noted here: http://projects.scipy.org/scipy/ticket/1894

the file contains compressed data blows 1.1gb when uncompressed. error message symptom of machine not having enough free memory store data. in addition this, latter part of file seems corrupted , cannot correctly loaded matlab either.

(scipy's mat-file loading routines require 2x memory if data compressed; however, fixed in scipy 0.13.0.)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -