Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scipy.io.loadmat doesn't work

Tags:

python

scipy

I have some problems loading mat files into spyder environment. I update my conda version and OS system (now I have Windows 10) and my script doesn't work anymore.

This is the script:

import scipy.io as sio
# I do a lot of stuff here
file = "filename.mat"
a = sio.loadmat(file)

I have found that there is a problem with the loadmat routine, but I don't know what.

I have this information about the system:

  • OS: Windows 10, 64 bits.
  • Anaconda 2, python 2.7
  • Other related software installed: Visual Studio 2015

It works before system operation update. Previus version was Windows 7, 64 bits

The error message when load line is executing: "Apparently the core died unexpectedly. Use 'Restart the core' to continue using this terminal."

UPDATE 1:

I have tested in a laptop the same situation, i.e., windows updating as well anaconda. The same problem with scipy.io.loadmat

UPDATE 2:

I installed an older version of anaconda. IT WORKS!!... Does somebody know what to do now?

Regards

like image 999
user3763977 Avatar asked Dec 18 '22 19:12

user3763977


1 Answers

This is a bug in the new scipy. You should downgrade it by running this in the Command Prompt:

conda install scipy==0.16.0
like image 135
Sergey Antopolskiy Avatar answered Dec 26 '22 12:12

Sergey Antopolskiy