Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018 data parse error #29

Open
audreyt opened this issue Feb 19, 2019 · 0 comments
Open

2018 data parse error #29

audreyt opened this issue Feb 19, 2019 · 0 comments

Comments

@audreyt
Copy link
Member

audreyt commented Feb 19, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant