Styles error : IndexError: list index out of range

Issue #243 resolved
jcdevil
created an issue

Here is the error message (got from RobotFramework) :

14:11:50.530    FAIL    IndexError: list index out of range
14:11:50.530    DEBUG   Traceback (most recent call last):
  File "C:\WORK\RI_ALL_TESTS\11P1\libs\testObject.py", line 1213, in launch_single_checks
    checks = self.__get_single_checks__(file_name=a_xl_file, sheet=a_sheet_number, tag=l_tag)
  File "C:\WORK\RI_ALL_TESTS\11P1\libs\testObject.py", line 299, in __get_single_checks__
    self.excelwbk.load(file_name=unicode(file_name), sheet=int(sheet))
  File "C:\WORK\RI_ALL_TESTS\11P1\libs\xlReaderObject.py", line 100, in load
    if self.loadfile(file_name=file_name, sheet=sheet) == True:
  File "C:\WORK\RI_ALL_TESTS\11P1\libs\xlReaderObject.py", line 122, in loadfile
    self.workbook = excel_reader.load_workbook(self.file_name)
  File "C:\Python27\lib\site-packages\openpyxl\reader\excel.py", line 136, in load_workbook
    _load_workbook(wb, archive, filename, use_iterators, keep_vba)
  File "C:\Python27\lib\site-packages\openpyxl\reader\excel.py", line 171, in _load_workbook
    style_table = read_style_table(archive.read(ARC_STYLE))
  File "C:\Python27\lib\site-packages\openpyxl\reader\style.py", line 85, in read_style_table
    new_style.fill = deepcopy(fill_list[int(cell_xfs_node.get('fillId'))])

Find attached the excel file generating the error. Thanks again for your support :) Cheers JCDeville

Comments (4)

  1. Log in to comment