KeyError: "There is no item named 'xl/drawings/NULL' in the archive
Created originally on Bitbucket by Bladian (Fabio)
First time it's ever happened.
#!python
Traceback (most recent call last):
File "C:\Users\Max\Downloads\Python\transfer.py", line 25, in <module>
documentToCopyFrom = xl.load_workbook(filename = documentToCopyFromName)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\openpyxl\reader\excel.py", line 312, in load_workbook
reader.read()
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\openpyxl\reader\excel.py", line 274, in read
self.read_worksheets()
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\openpyxl\reader\excel.py", line 249, in read_worksheets
charts, images = find_images(self.archive, rel.target)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\openpyxl\reader\drawings.py", line 51, in find_images
image = Image(BytesIO(archive.read(dep.target)))
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\zipfile.py", line 1428, in read
with self.open(name, "r", pwd) as fp:
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\zipfile.py", line 1467, in open
zinfo = self.getinfo(name)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\zipfile.py", line 1395, in getinfo
'There is no item named %r in the archive' % name)
It's when I attempt to open a document with a large amount of images in it.
Attachments: F105C610.xlsx