Nutan,
 Just clarifying the obvious. In the documentation for property "Command
Path" it says

> Specifies the command to be executed; if just the name of an executable is
> provided, it must be in the user's environment PATH.
> *Supports Expression Language: true (will be evaluated using flow file
> attributes and variable registry)*


Is python3 on your PATH environment?

On Fri, Aug 9, 2024 at 11:30 AM Nutan Shinde <[email protected]> wrote:

> Dear Team,
>
> I am encountering an issue while running the ExecuteStreamCommand in NiFi
> version 1.23.2. I am trying to execute a Python script from the
> processor. In the "*Command Path" property, *I have entered "*python3" *and
> in the* "Command Arguments," *I have provided the location of the Python
> file.
>
> However, I am encountering the following error:
>
> "ExecuteStreamCommand[id=86203450-c8b8-1fdf-1419-449e7ceae029] Processing
> failed: org.apache.nifi.processor.exception.ProcessException:
> java.io.IOException: Cannot run program "python3": error=2, No such file or
> directory - Caused by: java.io.IOException: Cannot run program "python3":
> error=2, No such file or directory - Caused by: java.io.IOException:
> error=2, No such file or directory 15:05:58 UTC ERROR
> ExecuteStreamCommand[id=86203450-c8b8-1fdf-1419-449e7ceae029] Could not
> create external process to run command: java.io.IOException: Cannot run
> program "python3": error=2, No such file or directory - Caused by:
> java.io.IOException: error=2, No such file or directory 15:05:39 UTC ERROR"
>
> Regards,
> Nutan Shinde
>

Reply via email to