lemonai icon indicating copy to clipboard operation
lemonai copied to clipboard

无法读取文件

Open EthenZhang opened this issue 1 year ago • 1 comments

v0.3.0 官方版本 部分日志: 2025-07-28 08:15:35 please response with xml format with action and params 2025-07-28 08:15:39 <read_file> 2025-07-28 08:15:39 upload/分省年度数据.xlsx 2025-07-28 08:15:40 </read_file>Memory for task 1753661736_0001 saved successfully. 2025-07-28 08:15:40 Memory for task 1753661736_0001 saved successfully. 2025-07-28 08:15:40 action { type: 'read_file', params: { path: 'upload/分省年度数据.xlsx' } } 2025-07-28 08:15:40 action read_file 2025-07-28 08:15:40 {"role":"assistant","uuid":"a1c43961-0eb8-4a4c-8343-d86d413376f7","status":"running","content":"upload/分省年度数据.xlsx","comments":"","memorized":"","timestamp":1753661740173,"meta":{"task_id":"1753661736_0001","action_type":"read_file","filepath":"","url":"","json":[],"content":""}}Reading file: /workspace/Conversation_fd53f4/upload/分省年度数据.xlsx, Type based on extension: .xlsx 2025-07-28 08:15:40 Error reading file at /workspace/Conversation_fd53f4/upload/分省年度数据.xlsx: Error: ENOENT: no such file or directory, open '/workspace/Conversation_fd53f4/upload/分省年度数据.xlsx' 2025-07-28 08:15:40 at Object.openSync (node:fs:561:18) 2025-07-28 08:15:40 at Object.readFileSync (node:fs:445:35) 2025-07-28 08:15:40 at read_binary (/app/node_modules/xlsx/xlsx.js:3275:44) 2025-07-28 08:15:40 at readSync (/app/node_modules/xlsx/xlsx.js:26980:69) 2025-07-28 08:15:40 at readFileSync (/app/node_modules/xlsx/xlsx.js:27025:9) 2025-07-28 08:15:40 at Object.parse (/app/node_modules/node-xlsx/dist/index.cjs:58:64) 2025-07-28 08:15:40 at read_file (/app/src/runtime/read_file.js:43:27) 2025-07-28 08:15:40 at DockerRuntime.read_file (/app/src/runtime/DockerRuntime.js:353:29) 2025-07-28 08:15:40 at async DockerRuntime.execute_action (/app/src/runtime/DockerRuntime.js:262:18) 2025-07-28 08:15:40 at async completeCodeAct (/app/src/agent/code-act/code-act.js:157:29) { 2025-07-28 08:15:40 errno: -2, 2025-07-28 08:15:40 code: 'ENOENT', 2025-07-28 08:15:40 syscall: 'open', 2025-07-28 08:15:40 path: '/workspace/Conversation_fd53f4/upload/分省年度数据.xlsx' 2025-07-28 08:15:40 } 2025-07-28 08:15:40 DockerRuntime.execute_action { 2025-07-28 08:15:40 status: 'failure', 2025-07-28 08:15:40 content: '', 2025-07-28 08:15:40 error: "Failed to read file /workspace/Conversation_fd53f4/upload/分省年度数据.xlsx: Failed to read file: ENOENT: no such file or directory, open '/workspace/Conversation_fd53f4/upload/分省年度数据.xlsx'" 2025-07-28 08:15:40 } 2025-07-28 08:15:40 {"role":"assistant","uuid":"a1c43961-0eb8-4a4c-8343-d86d413376f7","status":"failure","content":"","comments":"","memorized":"","timestamp":1753661740683,"meta":{"task_id":"1753661736_0001","action_type":"read_file","filepath":"","url":"","json":[],"content":""}}reflection_result { 2025-07-28 08:15:40 status: 'failure', 2025-07-28 08:15:40 comments: "Failed to read file /workspace/Conversation_fd53f4/upload/分省年度数据.xlsx: Failed to read file: ENOENT: no such file or directory, open '/workspace/Conversation_fd53f4/upload/分省年度数据.xlsx'" 2025-07-28 08:15:40 }

EthenZhang avatar Jul 28 '25 00:07 EthenZhang

We have update to 0.4.x and fix it ,Please check it OpenSource we dont have the file handle system,which Online version done. SO every task you should ask the LemonAI to handle the files by Python. It will wirte the code to handle these files first.

bboonnee avatar Sep 30 '25 03:09 bboonnee