Есть код:
import openpyxl
wb = openpyxl.load_workbook('Номеклатура PRP-4.xlsx')
Все работало, потом стало кидать ошибку:
Traceback (most recent call last):
File "C:\Users\piter\PycharmProjects\python\main.py", line 2, in
wb = openpyxl.load_workbook('Номеклатура PRP-4.xlsx')
File "C:\Users\piter\PycharmProjects\python\venv\lib\site-packages\openpyxl\reader\excel.py", line 317, in load_workbook
reader.read()
File "C:\Users\piter\PycharmProjects\python\venv\lib\site-packages\openpyxl\reader\excel.py", line 276, in read
self.read_manifest()
File "C:\Users\piter\PycharmProjects\python\venv\lib\site-packages\openpyxl\reader\excel.py", line 134, in read_manifest
src = self.archive.read(ARC_CONTENT_TYPES)
File "C:\Users\piter\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1463, in read
with self.open(name, "r", pwd) as fp:
File "C:\Users\piter\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1502, in open
zinfo = self.getinfo(name)
File "C:\Users\piter\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1429, in getinfo
raise KeyError(
KeyError: "There is no item named '[Content_Types].xml' in the archive"