This question already has an answer here:
This error pops up despite having a valid excel file "abc,xlsx" .
>>> import openpyxl
>>> wb = openpyxl.load_workbook("abc.xlsx")
Traceback (most recent call last):`enter code here`
File "<pyshell#1>", line 1, in <module>
wb = openpyxl.load_workbook("abc.xlsx")
File "C:Python27libsite-packagesopenpyxlreaderexcel.py", line 151, in load_workbook
archive = _validate_archive(filename)
File "C:Python27libsite-packagesopenpyxlreaderexcel.py", line 115, in _validate_archive
archive = ZipFile(filename, 'r', ZIP_DEFLATED)
File "C:Python27libzipfile.py", line 756, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: 'abc.xlsx'
Aucun commentaire:
Enregistrer un commentaire