ScottfreeLLC / AlphaPy

Python AutoML for Trading Systems and Sports Betting
Apache License 2.0
1.14k stars 207 forks source link

Index out of range when running sportflow #43

Open cif2cif opened 2 years ago

cif2cif commented 2 years ago

Describe the bug I have just installed sportflow and following the readme I get an error 'index out of range'.

To Reproduce Steps to reproduce the behavior:

  1. Execute sflow -pdate 2016-03-01
  2. See error Traceback (most recent call last): File "/home/cif/anaconda3/bin/sflow", line 8, in sys.exit(main()) File "/home/cif/anaconda3/lib/python3.8/site-packages/alphapy/sport_flow.py", line 678, in main args = parser.parse_args() File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 1771, in parse_args self.error(msg % ' '.join(argv)) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 2519, in error self.print_usage(_sys.stderr) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 2489, in print_usage self._print_message(self.format_usage(), file) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 2455, in format_usage return formatter.format_help() File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 282, in format_help help = self._root_section.format_help() File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 213, in format_help item_help = join([func(args) for func, args in self.items]) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 213, in item_help = join([func(args) for func, args in self.items]) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 320, in _format_usage action_usage = format(optionals + positionals, groups) File "/home/cif/anaconda3/lib/python3.8/argparse.py", line 395, in _format_actions_usage start = actions.index(group._group_actions[0]) IndexError: list index out of range

Expected behavior See sportflow output.

Desktop (please complete the following information):