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

custom path option errors #5

Closed
kj-9 opened this issue Jan 19, 2024 · 0 comments
Closed

custom path option errors #5

kj-9 opened this issue Jan 19, 2024 · 0 comments

Comments

@kj-9
Copy link
Owner

kj-9 commented Jan 19, 2024

ocrvid run data/videos/i0o52_x_oFU/video.mp4 -o data/videos/i0o52_x_oFU/video.json
⚠️  ocrvid is already on your PATH and installed at /Users/kh03/.pyenv/shims/ocrvid. Downloading and running anyway.
Traceback (most recent call last):
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/bin/ocrvid", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kh03/.local/pipx/.cache/025c4983c76e437/lib/python3.12/site-packages/ocrvid/cli.py", line 56, in run_ocr
    frames_dir = Path.cwd() / ".ocrvid/frames" / output_file.stem
                                                 ^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'output_file' where it is not associated with a value
@kj-9 kj-9 closed this as completed in a6badc2 Jan 19, 2024
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