Traceback (most recent call last):
File "/usr/local/bin/bragir", line 7, in <module>
sys.exit(cli())
^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/core.py", line 1685, in invoke
super().invoke(ctx)
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/__main__.py", line 23, in cli
setup_logging(InfoLoggerStrategy())
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/tracing/logger.py", line 8, in setup_logging
strategy.setup_logging()
File "/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/tracing/stratergies.py", line 15, in setup_logging
with resources.open_text("bragir.logging_configs", "info.json") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.12/3.12.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/_legacy.py", line 44, in open_text
return (_common.files(package) / normalize_path(resource)).open(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.12/3.12.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/pathlib.py", line 1013, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/logging_configs/info.json'
The tool exits with a FileNotFoundError about the missing info.json every time, for different input files and languages. No output files are produced.
Description
When running
bragir transcribeorbragir translate, the tool exits unexpectedly with a FileNotFoundError. The error reports that the file/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/logging_configs/info.jsoncannot be found. This happens every time with different video and subtitle input files, and for multiple target languages. This is my first time using bragir and I installed it via Homebrew using the README instructions. Theinfo.jsonfile is missing from my installation directory (I'm not sure if it should have been created during installation or by the tool itself).Full traceback:
Steps to Reproduce
bragir transcribe video.mp4bragir translate subs.srt --language Lang(with any subtitle file and valid language)Expected Behavior
bragir transcribe video.mp4: An .srt file containing the generated subtitles for video.mp4 is created.bragir translate subs.srt --language Lang: A new .srt file with the subtitles translated to the specified language is created.Actual Behavior
The tool exits with a FileNotFoundError about the missing info.json every time, for different input files and languages. No output files are produced.
Environment
Additional Information
info.jsonis missing from/usr/local/Cellar/bragir/1.4.4/libexec/lib/python3.12/site-packages/bragir/logging_configs/after installation.