openpyxl修改excel出错

Traceback (most recent call last):
File "D:\project\op.py", line 8, in
wb.save('e:/2.xlsx')
File "D:\python\lib\site-packages\openpyxl\workbook\workbook.py", line 396, in save
save_workbook(self, filename)
File "D:\python\lib\site-packages\openpyxl\writer\excel.py", line 294, in save_workbook
writer.save()
File "D:\python\lib\site-packages\openpyxl\writer\excel.py", line 276, in save
self.write_data()
File "D:\python\lib\site-packages\openpyxl\writer\excel.py", line 76, in write_data
self._write_worksheets()
File "D:\python\lib\site-packages\openpyxl\writer\excel.py", line 226, in _write_worksheets
self._write_comment(ws)
File "D:\python\lib\site-packages\openpyxl\writer\excel.py", line 180, in _write_comment
vml = fromstring(self.workbook.vba_archive.read(ws.legacy_drawing))
AttributeError: 'NoneType' object has no attribute 'read'

MiKi_16
MiKi_16 回复kafeihei: 解决了,更新openpyxl模块就好了
3 个月之前 回复
kafeihei
pptx 您好,请问,您的这个问题解决了么,我也碰到类似的问题,搞不定
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问