Skip to content

download时Docling 转换失败 #163

Description

@ping1x4d

dayu-cli download --ticker 301095.SZ --start 2024

[2026-05-14 22:57:12] [INFO] [FINS.CN_PIPELINE] 进入CN/HK下载流程: ticker=301095 market=CN form_type=None start=2024 end=None overwrite=False
[2026-05-14 22:57:13] [WARNING] [FINS.CNINFO_DOWNLOADER] 巨潮暂无独立 fiscal_period='Q2' 分类,已按无候选跳过
[2026-05-14 22:57:14] [WARNING] [FINS.CNINFO_DOWNLOADER] 巨潮暂无独立 fiscal_period='Q4' 分类,已按无候选跳过

[2026-05-14 22:57:17] [INFO] [FINS.CN_PIPELINE] filing 下载完成: ticker=301095 document_id= status=skipped form=Q2 filing_date=None report_date=None downloaded_files=0 skipped_files=0 failed_files=0 skip_reason=candidate_not_found reason_code=candidate_not_found reason_message=主源未返回对应财期报告 filter_category=None
[2026-05-14 22:57:17] [INFO] [FINS.CN_PIPELINE] filing 下载完成: ticker=301095 document_id= status=skipped form=Q4 filing_date=None report_date=None downloaded_files=0 skipped_files=0 failed_files=0 skip_reason=candidate_not_found reason_code=candidate_not_found reason_message=主源未返回对应财期报告 filter_category=None
[2026-05-14 22:57:17] [INFO] [FINS.CN_PIPELINE] 开始 Docling 转换: ticker=301095 document_id=fil_cn_2c6a2a4f9b90c1541dbce7b98032d83c1ed9aea2 form=Q1 filing_date=2026-04-26 source_file=fil_cn_2c6a2a4f9b90c1541dbce7b98032d83c1ed9aea2.pdf reused_pdf=True

[INFO] 2026-05-14 22:57:24,016 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:24,021 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:24,062 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_det_mobile.pth
[INFO] 2026-05-14 22:57:24,062 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_det_mobile.pth
[INFO] 2026-05-14 22:57:24,331 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:24,331 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:24,335 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_ptocr_mobile_v2.0_cls_mobile.pth
[INFO] 2026-05-14 22:57:24,335 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_ptocr_mobile_v2.0_cls_mobile.pth
[INFO] 2026-05-14 22:57:24,414 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:24,414 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:24,487 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_rec_mobile.pth
[INFO] 2026-05-14 22:57:24,487 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_rec_mobile.pth
[2026-05-14 22:57:29] [WARNING] [dayu.docling_runtime] Docling 转换失败,准备按尝试链回退: attempt=1/3 failed_backend=docling-parse failed_device=auto next_backend=pypdfium2 next_device=auto error_type=LocalEntryNotFoundError error=An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
[INFO] 2026-05-14 22:57:30,051 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:30,051 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:30,087 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_det_mobile.pth
[INFO] 2026-05-14 22:57:30,087 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_det_mobile.pth
[INFO] 2026-05-14 22:57:30,259 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:30,259 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:30,261 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_ptocr_mobile_v2.0_cls_mobile.pth
[INFO] 2026-05-14 22:57:30,261 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_ptocr_mobile_v2.0_cls_mobile.pth
[INFO] 2026-05-14 22:57:30,333 [RapidOCR] base.py:22: Using engine_name: torch
[INFO] 2026-05-14 22:57:30,333 [RapidOCR] device_config.py:57: Using CPU device
[INFO] 2026-05-14 22:57:30,392 [RapidOCR] download_file.py:60: File exists and is valid: /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_rec_mobile.pth
[INFO] 2026-05-14 22:57:30,392 [RapidOCR] main.py:50: Using /Users/ping/.local/share/uv/tools/dayu-agent/lib/python3.11/site-packages/rapidocr/models/ch_PP-OCRv4_rec_mobile.pth
[2026-05-14 22:57:31] [WARNING] [dayu.docling_runtime] Docling 转换失败,准备按尝试链回退: attempt=2/3 failed_backend=pypdfium2 failed_device=auto next_backend=docling-parse next_device=cpu error_type=LocalEntryNotFoundError error=An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

初始化时设置了HF_ENDPOINT:
echo $HF_ENDPOINT
https://hf-mirror.com

curl -I https://hf-mirror.com 返回 200

设置了 http_proxy, https_proxy,curl -I https://huggingface.co 也返回200,使用download报同样的错误。

系统环境:mac 14.2.1 (23C71) intel芯片

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