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

Index out of range when running sportflow #43

Open
cif2cif opened this issue Oct 22, 2021 · 0 comments
Open

Index out of range when running sportflow #43

cif2cif opened this issue Oct 22, 2021 · 0 comments

Comments

@cif2cif
Copy link

cif2cif commented Oct 22, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant