Skip to content

到最后文件生成失败,有啥方法救一下吗?(改一下任务进度重新生成文件之类的orz) #4

@auwc

Description

@auwc

2026-01-06 22:29:21 [INFO] [report_generator:agent_report_generator_7ab20028] [Phase2] Step 4: render report to docx
pandoc ./outputs/exp-v1\极兔速递\极兔速递 (01519.HK): 盈利拐点已现,全球扩张对冲监管逆风.md -o ./outputs/exp-v1\极兔速递\极兔速递 (01519.HK): 盈利拐点已现,全球扩张对冲监管逆风.docx --standalone --toc --toc-depth=3 --resource-path=./outputs/exp-v1\极兔速递 --reference-doc=src/template/report_template.docx
0%| | 0/1 [00:00<?, ?it/s]2026-01-06 22:29:29 [ERROR] [report_generator:agent_report_generator_7ab20028] Failed to convert docx to pdf: 'NoneType' object has no attribute 'SaveAs'
Traceback (most recent call last):
File "D:\python\FinSight\src\agents\report_generator\report_generator.py", line 624, in post_process_report
docx2pdf.convert(docx_path, pdf_path)
File "C:\Users\auwc3\anaconda3\envs\FinSight\Lib\site-packages\docx2pdf_init_.py", line 106, in convert
return windows(paths, keep_active)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\auwc3\anaconda3\envs\FinSight\Lib\site-packages\docx2pdf_init_.py", line 33, in windows
doc.SaveAs(str(pdf_filepath), FileFormat=wdFormatPDF)
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'SaveAs'
0%| | 0/1 [00:00<?, ?it/s]
2026-01-06 22:29:29 [INFO] [report_generator:agent_report_generator_7ab20028] [Phase2] Step 4 done, rendered files: md=./outputs/exp-v1\极兔速递\极兔速递 (01519.HK): 盈利拐点已现,全球扩张对冲监管逆风.md, docx=./outputs/exp-v1\极兔速递\极兔速递 (01519.HK): 盈利拐点已现,全球扩张对冲监管逆风.docx, pdf=./outputs/exp-v1\极兔速递\极兔速递 (01519.HK): 盈利拐点已现,全球扩张对冲监管逆风.pdf

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions