RL-MLDM/alphagen

FileNotFoundError: [Errno 2] No such file or directory: '/.qlib/qlib_data/cn_data/instruments/all.txt'

Closed this issue · 1 comments

LHB-kk commented

你好,我在命令行下运行指令:python fetch_baostock_data.py
出现以下错误:
Forward adjust date: 2023-11-04
Loading A-Shares stock list
Traceback (most recent call last):
File "fetch_baostock_data.py", line 276, in
dm.fetch_and_save_data()
File "fetch_baostock_data.py", line 253, in fetch_and_save_data
self._load_all_a_shares()
File "fetch_baostock_data.py", line 89, in _load_all_a_shares
self._load_all_a_shares_base()
File "fetch_baostock_data.py", line 81, in _load_all_a_shares_base
lines = _read_all_text(f"{self._qlib_path}/instruments/all.txt").split('\n')
File "fetch_baostock_data.py", line 18, in _read_all_text
with open(path, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/.qlib/qlib_data/cn_data/instruments/all.txt'
请问是要自己创建这个all.txt文件嘛?
谢谢!!!