Mar-01-2019, 09:41 AM
Hi,
Getting following error while loading excel file from directory, even though excel it is not a zip file
[Error :]
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
How do we solve this problem
1 2 3 4 5 6 |
import openpyxl #Path of workBook path = "C:\\***\\python_sheet.xlsx" #Load worksheet from the directory(path) wb = openpyxl.load_workbook(path) |
[Error :]
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
How do we solve this problem