I have an Excel file (20171206100734.xlsx, attached), which is generated with LabVIEW 14.0.1f10, which I would like to read with openpyxl.
Traceback (most recent call last):
File "c:\Python34\lib\site-packages\openpyxl\descriptors\base.py", line 57, in _convert
value = expected_type(value)
TypeError: object() takes no parameters
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 19, in <module>
ReadRawFile()
File "test.py", line 9, in ReadRawFile
wb = load_workbook(filename = r'./20171206100734.xlsx', read_only=True, data_only=True)
File "c:\Python34\lib\site-packages\openpyxl\reader\excel.py", line 221, in load_workbook
apply_stylesheet(archive, wb) # bind styles to workbook
File "c:\Python34\lib\site-packages\openpyxl\styles\stylesheet.py", line 182, in apply_stylesheet
stylesheet = Stylesheet.from_tree(node)
File "c:\Python34\lib\site-packages\openpyxl\styles\stylesheet.py", line 99, in from_tree
return super(Stylesheet, cls).from_tree(node)
File "c:\Python34\lib\site-packages\openpyxl\descriptors\serialisable.py", line 92, in from_tree
return cls(**attrib)
File "c:\Python34\lib\site-packages\openpyxl\styles\stylesheet.py", line 70, in __init__
self.fills = fills
File "c:\Python34\lib\site-packages\openpyxl\descriptors\sequence.py", line 27, in __set__
seq = [_convert(self.expected_type, value) for value in seq]
File "c:\Python34\lib\site-packages\openpyxl\descriptors\sequence.py", line 27, in <listcomp>
seq = [_convert(self.expected_type, value) for value in seq]
File "c:\Python34\lib\site-packages\openpyxl\descriptors\base.py", line 59, in _convert
raise TypeError('expected ' + str(expected_type))
TypeError: expected <class 'openpyxl.styles.fills.Fill'>
Any ideas or work-arounds would be appreciated.