spawn xxx ENOENT

Resolved 💬 2 comments Opened Apr 17, 2025 by ensorrow Closed Apr 17, 2025
💡 Likely answer: A maintainer (ensorrow, contributor) responded on this thread — see the highlighted reply below.

<img width="506" alt="Image" src="https://github.com/user-attachments/assets/707d1193-1a62-4f49-bcdf-363a81bf0503" />

View original on GitHub ↗

2 Comments

g1ibby · 1 year ago

Same error:

$ 'cat config.yaml'

    command.stdout (code: 1, duration: 0s)

    Error: spawn cat config.yaml ENOENT
.rw-r--r-- user staff 937 B  Tue Dec 10 05:43:57 2024  config.yaml
ensorrow contributor · 1 year ago

The spawn options.cwd is wrong:

<img width="525" alt="Image" src="https://github.com/user-attachments/assets/1f85c631-d0a0-4f6c-80bc-faf6ce047ff6" />

The workdir is passed by the model's function call param, so it's a mistake of the model:

<img width="785" alt="Image" src="https://github.com/user-attachments/assets/72613ef0-d2ac-4028-95ad-e872bf9461b5" />

But should the cli check whether the workdir exists before spawn the cmd?