RD-Agent icon indicating copy to clipboard operation
RD-Agent copied to clipboard

[Errno 2] No such file or directory: 'ret.pkl'

Open ronming1303 opened this issue 6 months ago • 0 comments

I followed the steps and executed rdagent fin_factor with OpenAI API. It works for 5 loops, but then failed, below is the output info.

How to fix this? Thanks in advance.

Run Info
┌────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Image │ local_qlib:latest │ │ Container ID │ 759be52f1a2d570a5e706d60959e38ebb90e69bc817894d2d1f2e6ee2e3de620 │ │ Container Name │ exciting_euler │ │ Entry │ /bin/sh -c 'timeout 3600 python read_exp_res.py; entry_exit_code=$?; chmod -R 777 /workspace/qlib_workspace/; exit │ │ │ $entry_exit_code' │ │ Env │ PYTHONWARNINGS:ignore │ │ │ TF_CPP_MIN_LOG_LEVEL:2 │ │ │ PYTHONUNBUFFERED:1 │ │ Volumes │ /home/rliu38/LLM/rdAgent/git_ignore_folder/RD-Agent_workspace/30f9b71fe757464d886513a519266ccb:{'bind': │ │ │ '/workspace/qlib_workspace/', 'mode': 'rw'} │ │ │ /home/rliu38/.qlib:{'bind': '/root/.qlib/', 'mode': 'ro'} │ └────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 8:MainThread INFO - qlib.Initialization - [config.py:420] - default_conf: client. 8:MainThread INFO - qlib.Initialization - [init.py:74] - qlib successfully initialized based on client settings. 8:MainThread INFO - qlib.Initialization - [init.py:76] - data_path={'__DEFAULT_FREQ': PosixPath('/root/.qlib/qlib_data/cn_data')} Latest recorder: {'class': 'Recorder', 'id': 'e773123e57f142259073c9eaf8ac9d1c', 'name': 'mlflow_recorder', 'experiment_id': '733363165164704167', 'start_time': '[DATETIME]', 'end_time': '[DATETIME]', 'status': 'FAILED'} Output has been saved to /workspace/qlib_workspace/qlib_res.csv LoadObjectError: No such file or directory: '/workspace/qlib_workspace/mlruns/733363165164704167/e773123e57f142259073c9eaf8ac9d1c/artifacts/portfolio_analysis/report_normal_1day.pkl' 8:MainThread ERROR - qlib.workflow - [utils.py:41] - An exception has been raised[LoadObjectError: No such file or directory: '/workspace/qlib_workspace/mlruns/733363165164704167/e773123e57f142259073c9eaf8ac9d1c/artifacts/portfolio_analysis/report_normal_1day.pkl']. File "/workspace/qlib_workspace/read_exp_res.py", line 47, in ret_data_frame = latest_recorder.load_object("portfolio_analysis/report_normal_1day.pkl") File "/workspace/qlib/qlib/workflow/recorder.py", line 437, in load_object raise LoadObjectError(str(e)) from e ─────────────────────────────────────────────────────────────────── Docker Logs End ──────────────────────────────────────────────────────────────────── Workflow Progress: 75%|████████████████████████████████████▊ | 3/4 [00:49<00:16, 16.52s/step, loop_index=5, step_index=3, step_name=running] Traceback (most recent call last): File "/home/rliu38/miniconda3/envs/llm/bin/rdagent", line 8, in sys.exit(app()) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/app/cli.py", line 48, in app fire.Fire( File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/fire/core.py", line 135, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/fire/core.py", line 468, in _Fire component, remaining_args = _CallAndUpdateTrace( File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/app/qlib_rd_loop/factor.py", line 43, in main model_loop.run(step_n=step_n) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/utils/workflow.py", line 123, in run self.loop_prev_out[name] = func(self.loop_prev_out) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/app/qlib_rd_loop/factor.py", line 20, in running exp = self.runner.develop(prev_out["coding"]) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/core/utils.py", line 199, in cache_wrapper result = func(*args, **kwargs) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/scenarios/qlib/developer/factor_runner.py", line 81, in develop exp.based_experiments[-1] = self.develop(exp.based_experiments[-1]) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/core/utils.py", line 199, in cache_wrapper result = func(*args, **kwargs) File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/scenarios/qlib/developer/factor_runner.py", line 116, in develop result = exp.experiment_workspace.execute( File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/rdagent/scenarios/qlib/experiment/workspace.py", line 33, in execute ret_df = pd.read_pickle(self.workspace_path / "ret.pkl") File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/pandas/io/pickle.py", line 185, in read_pickle with get_handle( File "/home/rliu38/miniconda3/envs/llm/lib/python3.10/site-packages/pandas/io/common.py", line 882, in get_handle handle = open(handle, ioargs.mode) FileNotFoundError: [Errno 2] No such file or directory: '/home/rliu38/LLM/rdAgent/git_ignore_folder/RD-Agent_workspace/30f9b71fe757464d886513a519266ccb/ret.pkl'

ronming1303 avatar Jun 02 '25 21:06 ronming1303