I'm having trouble using SciPy's loadmat. while savemat seems to work fine, when I try to load any .mat file, the whole python simply stops working without even throwing an error. I'm using anaconda2 distro (python 2.7) with scipy 0.17.0.
from scipy import io
dict_a = {'a':[3, 9, 17, 15, 19]}
io.savemat('example.mat', dict_a)
mat = io.loadmat('example.mat')
This example crashes the python on the last line. I would be glad for any ideas.
I encountered this issue after updating scipy. Downgrading scipy to 0.16.0 solved the issue.
conda install scipy==0.16.0
also see this post github
The trouble seems to be caused by faulty version of Anaconda 2.5.0, after downgrading to Anaconda 2.4.1 (or upgrading to Anaconda3) loadmat works properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With