DEV Community

Shraddha Marbhal
Shraddha Marbhal

Posted on

OSError Unable to create file (Unable to open .mat file, errno = 17, error message = 'File exists', flags = 15, o_flags = 502)

I want to read this .mat file (https://www.kaggle.com/crawford/deepsat-sat6) and want to visualize/convert it as images in jpg Please refer the code and error below. Please help me to overcome the error.

import matplotlib.pyplot as plt
import numpy as np
import h5py
from PIL import Image
filepath = 'D:\deepsat-sat6\sat-6-full.mat'

Top comments (0)