Skip to content

Cannot Edit Binary Options Within Script #621

@guyhurst90

Description

@guyhurst90

Describe the bug

On script 3.14.7, attempting to edit the binary options section of config within the script errors out instead. I tried editing other sections the same way and no such issue arose. Without debug information it silently backs out to the menu, with (and in the log) it gives me this traceback:

2026-04-09 13:14:20:[menu.main_menu_action:78]  FilePathPrompt argument 'default' should be type of str
2026-04-09 13:14:20:[menu.main_menu_action:79]  Traceback (most recent call last):
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/utils/menu.py", line 61, in main_menu_action
    config_menu_helper(config_result_prompt)
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/utils/menu.py", line 116, in config_menu_helper
    config_menu.binary_config()
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/utils/config/menu.py", line 39, in binary_config
    updated_config = prompts.binary_config()
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/prompt_groups/config.py", line 288, in binary_config
    answer = promptClasses.batchConverter(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/promptConvert.py", line 266, in batchConverter
    outDict.update(list(map(lambda x: batchConverterHelper(x, kwargs), args)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/promptConvert.py", line 266, in <lambda>
    outDict.update(list(map(lambda x: batchConverterHelper(x, kwargs), args)))
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/promptConvert.py", line 261, in batchConverterHelper
    return name, getType(ele_type)(**kwargs, **ele)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/promptConvert.py", line 49, in inner
    prompt_ = prompt_funct(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/ofscraper/prompts/promptConvert.py", line 222, in file_type
    return inquirer.filepath(*args, keybindings=keybindings.file, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/InquirerPy/prompts/filepath.py", line 165, in __init__
    super().__init__(
  File "/home/{home_directory}/.local/share/uv/tools/ofscraper/lib/python3.11/site-packages/InquirerPy/prompts/input.py", line 131, in __init__
    raise InvalidArgument(
InquirerPy.exceptions.InvalidArgument: FilePathPrompt argument 'default' should be type of str

To Reproduce

Main menu -> Edit config.json file -> Binary Options

Expected behavior

The editor to show up, like it does for the other sections.

Screenshots/Logs

Traceback as above.

Config

"binary_options": {
        "ffmpeg": "/home/luser/bin/ffmpeg"
    }

System Info

  • Script 3.14.7
  • Python 3.11
  • Debian sid
  • Installed with uv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions