Powered by
exec: provider - error on spawning child process
# ❓|questions
n
niczka_niczka
02/25/2025, 9:12 AM
I'm trying to run a custom provider and keep getting this error also for very simple scripts (my test.py is just "return {'output': "some string"}" ) - any ideas on what is wrong here?
https://cdn.discordapp.com/attachments/1343873276316880896/1343873276492906556/image.png?ex=67bedb05&is=67bd8985&hm=eaddbb6e92d849f2392bf3ab972495adaa765fdd6e08d6f5de2e6e8d89ca6d91&
u
[Promptfoo] Steve
02/25/2025, 4:09 PM
Can you please provide the entire error message?
n
niczka_niczka
02/25/2025, 5:55 PM
Error: spawn python ENOENT Error: spawn python ENOENT at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
u
[Promptfoo] Steve
02/25/2025, 10:51 PM
@niczka_niczka
can you share your python and config file?
n
niczka_niczka
02/26/2025, 11:20 AM
Solved this: my python path was 'python3', not 'python' - will it be possible to get more info in he error message there?
Previous
Next