Unable to read file. It s a common misconception that relative paths are relative to the location of the python script but this is untrue. Somehow when i resave the mat file i was able to load it using the 8gb ram one.