Skip to content

Runtime error while running the recommended basic usage command #1

Description

@alvinary

After following the installation instructions and running python3 scanner.py <file_name>, the program raises an exception. The console output reads:

Traceback (most recent call last):
  File "...\Python\pythoncore-3.14-64\Lib\argparse.py", line 1748, in _check_help
    formatter._expand_help(action)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "...l\Python\pythoncore-3.14-64\Lib\argparse.py", line 676, in _expand_help
    return help_string % params
           ~~~~~~~~~~~~^~~~~~~~
ValueError: unsupported format character ')' (0x29) at index 113

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "...\doc-scanner\scanner.py", line 876, in <module>
    main()
    ~~~~^^
  File "...\doc-scanner\scanner.py", line 425, in main
    args = parse_arguments()
  File "...\doc-scanner\scanner.py", line 385, in parse_arguments
    parser.add_argument(
    ~~~~~~~~~~~~~~~~~~~^
        "--min-area-frac",
        ^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        help="If selected quad covers less than this fraction of the resized image, use full-frame fallback (default: 0.04 = 4%)",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "...\Python\pythoncore-3.14-64\Lib\argparse.py", line 1562, in add_argument
    self._check_help(action)
    ~~~~~~~~~~~~~~~~^^^^^^^^
  File "C:\Users\Equipo\AppData\Local\Python\pythoncore-3.14-64\Lib\argparse.py", line 1750, in _check_help
    raise ValueError('badly formed help string') from exc

ValueError: badly formed help string

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