Can't load excel files with shaded gradients
Created originally on Bitbucket by kound (Carli)
Thanks for fixing the last bug that fast :-)
Still I can't load my excel sheet :-/, it fails on shaded Shaded fills with two colors (see example).
Unfortunately I don't know where to find a solution this time.
#!python
Traceback:
return [self.expected_type.from_tree(el) for el in node]
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\fills.py", line 65, in from_tree
return super(Fill, cls).from_tree(child)
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\serialisable.py", line 99, in from_tree
return cls(**attrib)
TypeError: object() takes no parameters
return super(Stylesheet, cls).from_tree(node)
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\serialisable.py", line 79, in from_tree
obj = desc.from_tree(el)
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\sequence.py", line 86, in from_tree
return [self.expected_type.from_tree(el) for el in node]
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\sequence.py", line 86, in <listcomp>
stylesheet = Stylesheet.from_tree(node)
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\stylesheet.py", line 99, in from_tree
apply_stylesheet(archive, wb) # bind styles to workbook
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\stylesheet.py", line 182, in apply_stylesheet
Traceback (most recent call last):
File "C:\Users\00068549\Documents\Pyhton\openpyxl_test.py", line 56, in <module>
read_unread_names(r"c:\Users\00068549\Documents\Pyhton\minimal_gradient.xlsx","")
File "C:\Users\00068549\Documents\Pyhton\openpyxl_test.py", line 22, in read_unread_names
wb=xl.load_workbook(filepath,data_only=True)
File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\reader\excel.py", line 226, in load_workbook
Attachments: minimal_gradient.xlsx