Skip to content

Error Message not clear #47

@philstau

Description

@philstau

Description

Thanks for the great work! I tried the web feature with your demo file and succeeded.
Then I tried one of our own files, which failed.
However struggle to understand the error message. Could you kindly advise me what it may indicate?

Steps to Reproduce

  1. Using the following file:
    MYS_A_PERS_v11_num.xlsx

  2. Uploading on http://ppp.pma2020.org/

  3. Keeping all settings as is.

Desired/expected behavior

Normal Outcome

Actual behavior

The following error message appeared:

STDERR: Traceback (most recent call last): File "/app/.heroku/python/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/app/.heroku/python/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/app/.heroku/python/lib/python3.6/site-packages/ppp/__main__.py", line 8, in <module> cli() File "/app/.heroku/python/lib/python3.6/site-packages/ppp/interfaces/cli.py", line 235, in cli debug=args.debug, highlight=args.highlight, preset=args.preset, template=args.template) File "/app/.heroku/python/lib/python3.6/site-packages/ppp/__init__.py", line 158, in run convert_file(file, language, outpath=_outpath, **combo) File "/app/.heroku/python/lib/python3.6/site-packages/ppp/__init__.py", line 52, in convert_file form = OdkForm.from_file(in_file) File "/app/.heroku/python/lib/python3.6/site-packages/ppp/odkform.py", line 108, in from_file xlsform = Xlsform(path, strict_validation=False) File "/app/.heroku/python/lib/python3.6/site-packages/pmix/xlsform.py", line 26, in __init__ self.data = [Xlstab.from_worksheet(ws) for ws in self] File "/app/.heroku/python/lib/python3.6/site-packages/pmix/xlsform.py", line 26, in <listcomp> self.data = [Xlstab.from_worksheet(ws) for ws in self] File "/app/.heroku/python/lib/python3.6/site-packages/pmix/xlstab.py", line 82, in from_worksheet xlstab = cls(data=worksheet.data, name=worksheet.name) File "/app/.heroku/python/lib/python3.6/site-packages/pmix/xlstab.py", line 47, in __init__ self.assert_unique_cols() File "/app/.heroku/python/lib/python3.6/site-packages/pmix/xlstab.py", line 60, in assert_unique_cols raise XlsformError('Headers not unique in {}'.format(self.name)) pmix.error.XlsformError: Headers not unique in Sheet1

Additional details

Kindly advise =)
Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions