CLI: IndexError: list index out of range
Closed this issue · 0 comments
yolile commented
commnad: spoonbill data/uruguay-2020.json --xlsx
file: uruguay-2020.json.gz
output:
Detecting input file format
Input file is release package
No schema provided, using version 1__1__5
State file not supplied, going to analyze input file first
Processing file: data/uruguay-2020.json
Processed 82736 objects [############################################################################################################################################################################-------------------------------------------------------------------------------] 116654080/169554704 68% 00:01:58
Traceback (most recent call last):
File "spoonbill", line 8, in <module>
sys.exit(cli())
File "click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "spoonbill/cli.py", line 213, in cli
for read, number in analyzer.analyze_file(filename, with_preview=True):
File "spoonbill/__init__.py", line 52, in analyze_file
for count in self.spec.process_items(items, with_preview=with_preview):
File "spoonbill/stats.py", line 226, in process_items
if not isinstance(item[0], dict) and not item_type:
IndexError: list index out of range