Skip to content
loading...

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

shraddhapm profile image Shraddha Marbhal github logo ・1 min read

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'
twitter logo DISCUSS
Discussion
markdown guide
Classic DEV Post from Aug 4 '19

You're not worth hiring unless...

Shraddha Marbhal profile image
M.Tech Engineer