Environment
Local machine: Windows
Project path: C:\Users\laris\Downloads\semanticClimate\structure
Commands executed from: structure/ root
Python environment: .venv
What I was trying to do
Test the example commands provided in the structure repository for converting and validating documents.
What I expected to happen
The conversion and validation commands should run successfully using the example paths shown in the documentation.
What commands I issued
python -m structure.convert.docling.cli pilot/examples/iari_2024.pdf --document-id iari-2024
python -m structure.validate.html.cli pilot/examples/html/iari_2024.html
The ones actually working
python -m structure.convert.docling.cli pilot/examples/iari-2024/annual_report.pdf --document-id iari-2024
python -m structure.validate.html.cli pilot/examples/iari-2024/annual_report.raw.html
What happened (including output)
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 138, in
raise SystemExit(main())
~~~~^^
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 128, in main
html_path = convert_document(
args.document_id,
args.pdf,
decode_krutidev=decode_krutidev,
)
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 80, in convert_document
html_path = converter.convert_pdf_to_html(pdf_path, output_path)
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\converter.py", line 25, in convert_pdf_to_html
assert pdf_path.is_file(), f"PDF input not found: {pdf_path}"
~~~~~~~~~~~~~~~~^^
AssertionError: PDF input not found: pilot\examples\iari_2024.pdf
Environment
Local machine: Windows
Project path: C:\Users\laris\Downloads\semanticClimate\structure
Commands executed from: structure/ root
Python environment: .venv
What I was trying to do
Test the example commands provided in the structure repository for converting and validating documents.
What I expected to happen
The conversion and validation commands should run successfully using the example paths shown in the documentation.
What commands I issued
python -m structure.convert.docling.cli pilot/examples/iari_2024.pdf --document-id iari-2024
python -m structure.validate.html.cli pilot/examples/html/iari_2024.html
The ones actually working
python -m structure.convert.docling.cli pilot/examples/iari-2024/annual_report.pdf --document-id iari-2024
python -m structure.validate.html.cli pilot/examples/iari-2024/annual_report.raw.html
What happened (including output)
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 138, in
raise SystemExit(main())
~~~~^^
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 128, in main
html_path = convert_document(
args.document_id,
args.pdf,
decode_krutidev=decode_krutidev,
)
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\cli.py", line 80, in convert_document
html_path = converter.convert_pdf_to_html(pdf_path, output_path)
File "C:\Users\laris\Downloads\semanticClimate\structure\structure\convert\docling\converter.py", line 25, in convert_pdf_to_html
assert pdf_path.is_file(), f"PDF input not found: {pdf_path}"
~~~~~~~~~~~~~~~~^^
AssertionError: PDF input not found: pilot\examples\iari_2024.pdf