Skip to content

2018 data parse error #29

@audreyt

Description

@audreyt

Steps to reproduce:

mkdir dict_revised
cd dict_revised
wget https://raw.githubusercontent.com/g0v/moedict-data/2018/dict_revised/dict_revised_1.xls
wget https://raw.githubusercontent.com/g0v/moedict-data/2018/dict_revised/dict_revised_2.xls
wget https://raw.githubusercontent.com/g0v/moedict-data/2018/dict_revised/dict_revised_3.xls
cd ..
make json

Trace:

python parse.py
INFO     [2019-02-19 10:52:14,880 parse.py:282] dict_revised
INFO     [2019-02-19 10:52:21,656 parse.py:307] 1 files, parsed 0
Traceback (most recent call last):
  File "parse.py", line 310, in <module>
    main()
  File "parse.py", line 300, in main
    if process_excel(rawdata):
  File "parse.py", line 198, in process_excel
    basic, heteronym = parse_heteronym(sh.row(rx))
  File "parse.py", line 147, in parse_heteronym
    cells[8].value), heteronym['definitions'])
  File "parse.py", line 122, in associate_to_defs
    defs[0][key] = v
IndexError: list index out of range
make: *** [dict-revised.json] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions