Skip to content

Crash when using logfile (-l) argument #169

Closed

Description

@Breakthrough

From #93, specifying a logfile currently causes the program to exit with a failure:

Downloads % scenedetect -v debug -l BUG_REPORT.txt --input goldeneye.mp4 detect-content split-video
Traceback (most recent call last):
  File "/Users/bman/.pyenv/versions/3.8.2/bin/scenedetect", line 8, in <module>
    sys.exit(main())
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/scenedetect/__main__.py", line 58, in main
    cli.main(obj=cli_ctx)   # Parse CLI arguments with registered callbacks.
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/click/core.py", line 1268, in invoke
    Command.invoke(self, ctx)
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/bman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/scenedetect/cli/__init__.py", line 261, in scenedetect_cli
    logfile = ctx.obj.get_output_file_path(logfile)
AttributeError: 'CliContext' object has no attribute 'get_output_file_path'

Activity

  1. self-assigned this
    on Jul 9, 2020
  2. added this to the milestone on Jul 9, 2020
  3. modified the milestones: , v0.5.3 on Jul 12, 2020
  4. added a commit that references this issue on Jul 18, 2020
    2d4d9d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions