Attribute Error: 'Workbook' object has no '_date_formats'
Created originally on Bitbucket by nmbenzo (Nathan Benzschawel)
I just upgraded to openpyxl 2.6.0 and I'm not getting a 'load_workbook" error due to a missing attribute in the Workbook object. I was on 2.5.14 earlier today which did not throw this error. Rolled back to this version in venv.
Anyone else getting this?
File "Documents/comappleCloudDocs/Udemy_Python/SEVIS_Application/Handlers/file_imports.py",
line 94, in
wb_trans = openpyxl.load_workbook(new_transfer_data)
File "Documents/comappleCloudDocs/Udemy_Python/SEVIS_Application/venv/lib/python3.7/site-packages/openpyxl/reader/excel.py",
line 312, in load_workbook
reader.read()
File "Documents/comappleCloudDocs/Udemy_Python/SEVIS_Application/venv/lib/python3.7/site-packages/openpyxl/reader/excel.py",
line 274, in read
self.read_worksheets()
File "Documents/comappleCloudDocs/Udemy_Python/SEVIS_Application/venv/lib/python3.7/site-packages/openpyxl/reader/excel.py",
line 227, in read_worksheets
ws_parser = WorksheetReader(ws, fh, self.shared_strings, self.data_only)
File "Documents/comappleCloudDocs/Udemy_Python/SEVIS_Application/venv/lib/python3.7/site-packages/openpyxl/worksheet/_reader.py",
line 308, in init
self.parser = WorkSheetParser(xml_source, shared_strings, data_only, ws.parent.epoch, ws.parent._date_formats)
AttributeError: 'Workbook' object has no attribute '_date_formats'
Process finished with exit code 1