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

IndexError: list out of range #39

Open
joeflack4 opened this issue Sep 25, 2018 · 1 comment
Open

IndexError: list out of range #39

joeflack4 opened this issue Sep 25, 2018 · 1 comment
Assignees
Labels
bug Something isn't working P1 Priority: 1/5 (1=High, 5=Low)

Comments

@joeflack4
Copy link
Contributor

Description

When converting the attached form, the following error is produced:

IndexError: list out of range


Attachments

  1. index error - list out of range.zip
@joeflack4 joeflack4 added bug Something isn't working P2 Priority: 2/5 (1=High, 5=Low) labels Sep 25, 2018
@joeflack4 joeflack4 self-assigned this Sep 25, 2018
@joeflack4
Copy link
Contributor Author

another case:

Joe:Desktop joeflack4$ python3 -m ppp *.xlsx --format html doc --template old --language English Swahili --preset standard --outpath ./out/
Creating files.
./out/KEP1-Female-Questionnaire-v1-jef-English.html
./out/KEP1-Female-Questionnaire-v1-jef-English.doc
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/__main__.py", line 8, in <module>
    cli()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/interfaces/cli.py", line 239, in cli
    outpath=args.outpath)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/__init__.py", line 158, in run
    convert_file(file, language, outpath=_outpath, **combo)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/__init__.py", line 62, in convert_file
    output = form.to_html(lang=language, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/odkform.py", line 369, in to_html
    html_questionnaire += item.to_html(lang=language, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/odkgroup.py", line 139, in to_html
    html += i.to_html(lang, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/odktable.py", line 138, in to_html
    self.set_header_and_contents(lang, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ppp/odktable.py", line 77, in set_header_and_contents
    con.row['label'] = con.row['label'][0]
IndexError: string index out of range

KEP1-Female-Questionnaire-v1-jef.xlsx

@joeflack4 joeflack4 added P1 Priority: 1/5 (1=High, 5=Low) and removed P2 Priority: 2/5 (1=High, 5=Low) labels Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Priority: 1/5 (1=High, 5=Low)
Projects
None yet
Development

No branches or pull requests

1 participant