Skip to content

IndexError: list index out of range #32

@iambusybox

Description

@iambusybox

Doesn't parse .xlsx which is absolutely correct and opened in MS Excel.

This is the stack trace:

D:\Project>C:\Windows\system32\cmd.exe /s /c "python D:\Project\node_modules\excel-parser/convert.py -x "uploads\contacts.xlsx" -W"
Traceback (most recent call last):
File "D:\Project\node_modules\excel-parser/convert.py", line 496, in
convert2csv(args.inFile, sys.stdout, args.sheetFlag)
File "D:\Project\node_modules\excel-parser/convert.py", line 117, in convert2csv
convertXlsx(ziphandle, sheetFlag, sheetId, sheetName, writer)
File "D:\Project\node_modules\excel-parser/convert.py", line 125, in convertXlsx
workbook = parse(ziphandle, Workbook, "xl/workbook.xml")
File "D:\Project\node_modules\excel-parser/convert.py", line 198, in parse
instance.parse(ziphandle.read(filename))
File "D:\Project\node_modules\excel-parser/convert.py", line 217, in parse
sheets = workbookDoc.firstChild.getElementsByTagName("sheets")[0]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions