Can't load excel files with shaded gradients

Issue #903 resolved
created an issue

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.

  return [self.expected_type.from_tree(el) for el in node]
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\", line 65, in from_tree
    return super(Fill, cls).from_tree(child)
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\", 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\", line 79, in from_tree
    obj = desc.from_tree(el)
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\descriptors\", 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\", line 86, in <listcomp>
    stylesheet = Stylesheet.from_tree(node)
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\", line 99, in from_tree
    apply_stylesheet(archive, wb) # bind styles to workbook
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\styles\", line 182, in apply_stylesheet
Traceback (most recent call last):
  File "C:\Users\00068549\Documents\Pyhton\", line 56, in <module>
  File "C:\Users\00068549\Documents\Pyhton\", line 22, in read_unread_names
  File "C:\ProgramData\Anaconda3\lib\site-packages\openpyxl\reader\", line 226, in load_workbook

Comments (4)

  1. Log in to comment