[2026-02-26 13:51:19.843] /home/zhangjianyong/project/crewai/investment_team/.venv/lib/python3.13/site-packages/py_mini_racer/py_mini_racer.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. [2026-02-26 13:51:19.844] import pkg_resources [2026-02-26 13:51:19.904] [2026-02-26 13:51:19.904] [线程: MainThread] ========== 程序开始执行 ========== [2026-02-26 13:51:19.904] [2026-02-26 13:51:19.904] [线程: MainThread] 从 /home/zhangjianyong/project/crewai/investment_team/src/investment_team/config/fundList.txt 加载了 36 个基金 [2026-02-26 13:51:19.904] [2026-02-26 13:51:19.904] [线程: MainThread] 开始获取所有ETF的数据和技术指标... [2026-02-26 13:51:19.904] [1/36] Processing sh515790 ... [2026-02-26 13:51:22.326] Warning: 历史K线请求失败 [尝试 1/3] fund_code=sh515790 error=('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [2026-02-26 13:51:22.326] 失败URL: https://push2his.eastmoney.com/api/qt/stock/kline/get?klt=101&fqt=0&beg=20251029&end=20260226&secid=1.515790 [2026-02-26 13:51:22.326] 正在通过无头浏览器重新获取 Cookie 并重试... [2026-02-26 13:51:26.282] Warning: 历史K线请求失败 [尝试 2/3] fund_code=sh515790 error=('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [2026-02-26 13:51:26.282] 失败URL: https://push2his.eastmoney.com/api/qt/stock/kline/get?klt=101&fqt=0&beg=20251029&end=20260226&secid=1.515790 [2026-02-26 13:51:26.282] 正在通过无头浏览器重新获取 Cookie 并重试... [2026-02-26 13:51:30.279] Warning: 历史K线请求失败 [尝试 3/3] fund_code=sh515790 error=('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [2026-02-26 13:51:30.279] 失败URL: https://push2his.eastmoney.com/api/qt/stock/kline/get?klt=101&fqt=0&beg=20251029&end=20260226&secid=1.515790 [2026-02-26 13:51:30.279] Warning: Failed to fetch raw ETF data from akshare: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [2026-02-26 13:51:30.279] 失败URL(历史K线): https://push2his.eastmoney.com/api/qt/stock/kline/get?klt=101&fqt=0&beg=20251029&end=20260226&secid=1.515790 [2026-02-26 13:51:30.279] [2026-02-26 13:51:30.279] [ERROR] [线程: MainThread] 历史K线数据获取失败,程序退出: 历史K线获取失败: sh515790, 原因: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [2026-02-26 13:51:30.279] Error: 历史K线数据获取失败,程序退出: 历史K线获取失败: sh515790, 原因: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))