Getting a traceback when running on OSX. I tried using pipx with brew to install btw.
Sorry for the formatting issues, I tried a number of things but can't get the text output clean in gh.
Any ideas?
`mkdocs_translate 127 ✘
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /Users/josh/.local/bin/mkdocs_translate:8 in │
│ │
│ 5 from mkdocs_translate.cli import app │
│ 6 if name == 'main': │
│ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │
│ ❱ 8 │ sys.exit(app()) │
│ 9 │
│ │
│ ╭───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │
│ │ app = <typer.main.Typer object at 0x10231fcb0> │ │
│ │ re = <module 're' from │ │
│ │ '/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/re/__… │ │
│ │ sys = <module 'sys' (built-in)> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:340 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:323 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1157 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/core.py:743 in main │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/core.py:197 in _main │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:943 in make_context │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1644 in parse_args │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1408 in parse_args │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:2400 in │
│ handle_parse_result │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:2362 in process_value │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:1012 in wrapper │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/cli.py:62 in │
│ _config_callback │
│ │
│ 59 │
│ 60 │
│ 61 def _config_callback(config_path: str) -> None: │
│ ❱ 62 │ init_config(config_path) │
│ 63 │
│ 64 │
│ 65 @app.command() │
│ │
│ ╭────── locals ──────╮ │
│ │ config_path = None │ │
│ ╰────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/translate.py:80 in │
│ init_config │
│ │
│ 77 │ global rst_folder │
│ 78 │ global anchor_file │
│ 79 │ │
│ ❱ 80 │ config = load_config(override_path) │
│ 81 │ │
│ 82 │ docs_folder = os.path.normpath(os.path.join(config['project_folder'], config['docs_f │
│ 83 │ upload_folder = os.path.normpath(os.path.join(config['project_folder'], config['buil │
│ │
│ ╭─────── locals ───────╮ │
│ │ override_path = None │ │
│ ╰──────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/translate.py:64 in │
│ load_config │
│ │
│ 61 │ │ return yaml.safe_load(text) │
│ 62 │ else: │
│ 63 │ │ # default configuration │
│ ❱ 64 │ │ raw = pkgutil.get_data('mkdocs_translate', "config.yml") │
│ 65 │ │ return yaml.safe_load(raw.decode('utf-8')) │
│ 66 │
│ 67 def init_config(override_path: str) -> None: │
│ │
│ ╭─────── locals ───────╮ │
│ │ override_path = None │ │
│ ╰──────────────────────╯ │
│ │
│ /opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pkgutil.py:453 in │
│ get_data │
│ │
│ 450 │ parts = resource.split('/') │
│ 451 │ parts.insert(0, os.path.dirname(mod.file)) │
│ 452 │ resource_name = os.path.join(*parts) │
│ ❱ 453 │ return loader.get_data(resource_name) │
│ 454 │
│ 455 │
│ 456 _NAME_PATTERN = None │
│ │
│ ╭───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │
│ │ loader = <frozen_importlib_external.SourceFileLoader object at 0x100be3750> │ │
│ │ mod = <module 'mkdocs_translate' from │ │
│ │ '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/… │ │
│ │ package = 'mkdocs_translate' │ │
│ │ parts = [ │ │
│ │ │ '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+12, │ │
│ │ │ 'config.yml' │ │
│ │ ] │ │
│ │ resource = 'config.yml' │ │
│ │ resource_name = '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+23 │ │
│ │ spec = ModuleSpec(name='mkdocs_translate', loader=<_frozen_importlib_external.SourceFileLoader object │ │
│ │ at 0x100be3750>, │ │
│ │ origin='/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_tran… │ │
│ │ submodule_search_locations=['/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ in get_data:1213 │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ path = '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+23 │ │
│ │ self = <_frozen_importlib_external.SourceFileLoader object at 0x100be3750> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory:
'/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/config.yml'
Getting a traceback when running on OSX. I tried using pipx with brew to install btw.
Sorry for the formatting issues, I tried a number of things but can't get the text output clean in gh.
Any ideas?
`mkdocs_translate 127 ✘
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /Users/josh/.local/bin/mkdocs_translate:8 in │
│ │
│ 5 from mkdocs_translate.cli import app │
│ 6 if name == 'main': │
│ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │
│ ❱ 8 │ sys.exit(app()) │
│ 9 │
│ │
│ ╭───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │
│ │ app = <typer.main.Typer object at 0x10231fcb0> │ │
│ │ re = <module 're' from │ │
│ │ '/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/re/__… │ │
│ │ sys = <module 'sys' (built-in)> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:340 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:323 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1157 in call │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/core.py:743 in main │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/core.py:197 in _main │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:943 in make_context │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1644 in parse_args │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:1408 in parse_args │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:2400 in │
│ handle_parse_result │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/click/core.py:2362 in process_value │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/typer/main.py:1012 in wrapper │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/cli.py:62 in │
│ _config_callback │
│ │
│ 59 │
│ 60 │
│ 61 def _config_callback(config_path: str) -> None: │
│ ❱ 62 │ init_config(config_path) │
│ 63 │
│ 64 │
│ 65 @app.command() │
│ │
│ ╭────── locals ──────╮ │
│ │ config_path = None │ │
│ ╰────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/translate.py:80 in │
│ init_config │
│ │
│ 77 │ global rst_folder │
│ 78 │ global anchor_file │
│ 79 │ │
│ ❱ 80 │ config = load_config(override_path) │
│ 81 │ │
│ 82 │ docs_folder = os.path.normpath(os.path.join(config['project_folder'], config['docs_f │
│ 83 │ upload_folder = os.path.normpath(os.path.join(config['project_folder'], config['buil │
│ │
│ ╭─────── locals ───────╮ │
│ │ override_path = None │ │
│ ╰──────────────────────╯ │
│ │
│ /Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/translate.py:64 in │
│ load_config │
│ │
│ 61 │ │ return yaml.safe_load(text) │
│ 62 │ else: │
│ 63 │ │ # default configuration │
│ ❱ 64 │ │ raw = pkgutil.get_data('mkdocs_translate', "config.yml") │
│ 65 │ │ return yaml.safe_load(raw.decode('utf-8')) │
│ 66 │
│ 67 def init_config(override_path: str) -> None: │
│ │
│ ╭─────── locals ───────╮ │
│ │ override_path = None │ │
│ ╰──────────────────────╯ │
│ │
│ /opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pkgutil.py:453 in │
│ get_data │
│ │
│ 450 │ parts = resource.split('/') │
│ 451 │ parts.insert(0, os.path.dirname(mod.file)) │
│ 452 │ resource_name = os.path.join(*parts) │
│ ❱ 453 │ return loader.get_data(resource_name) │
│ 454 │
│ 455 │
│ 456 _NAME_PATTERN = None │
│ │
│ ╭───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────╮ │
│ │ loader = <frozen_importlib_external.SourceFileLoader object at 0x100be3750> │ │
│ │ mod = <module 'mkdocs_translate' from │ │
│ │ '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/… │ │
│ │ package = 'mkdocs_translate' │ │
│ │ parts = [ │ │
│ │ │ '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+12, │ │
│ │ │ 'config.yml' │ │
│ │ ] │ │
│ │ resource = 'config.yml' │ │
│ │ resource_name = '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+23 │ │
│ │ spec = ModuleSpec(name='mkdocs_translate', loader=<_frozen_importlib_external.SourceFileLoader object │ │
│ │ at 0x100be3750>, │ │
│ │ origin='/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_tran… │ │
│ │ submodule_search_locations=['/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ in get_data:1213 │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ path = '/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdo'+23 │ │
│ │ self = <_frozen_importlib_external.SourceFileLoader object at 0x100be3750> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory:
'/Users/josh/.local/pipx/venvs/mkdocs-translate/lib/python3.13/site-packages/mkdocs_translate/config.yml'