Skip to content

Hints and "IndexError: list index out of range" #44

@joeflack4

Description

@joeflack4

Description

Getting the following error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ppp/__main__.py", line 8, in <module>
    cli()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ppp/interfaces/cli.py", line 239, in cli
    outpath=args.outpath)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ppp/__init__.py", line 158, in run
    convert_file(file, language, outpath=_outpath, **combo)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ppp/__init__.py", line 62, in convert_file
    output = form.to_html(lang=language, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ppp/odkform.py", line 365, in to_html
    isinstance(data['questionnaire'][index+1], OdkGroup):
IndexError: list index out of range

Additional information

This seems to have something to do with the text I have in the hint::English field. After clearing the text in this column, the error disappeared, and PPP was able to convert successfully.


Attachments

  1. diabetes-app-content-v2.xlsx.zip

Metadata

Metadata

Assignees

Labels

P1Priority: 1/5 (1=High, 5=Low)bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions