Skip to content

Index out of range when running sportflow #43

@cif2cif

Description

@cif2cif

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):

  • OS: [e.g. iOS] Ubuntu 20.10
  • Browser [e.g. chrome, safari] NA
  • Version [e.g. 22] NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions