Hi Nutan, Have you tried running the Python script independently on that instance? Also, please make sure you have python3 installed in the environment/container where you run the Nifi server.
Regards -- Arvind Singh Tomar *HotWax Systems* *Enterprise open-source experts* http://www.hotwaxsystems.com On Sat, Aug 10, 2024 at 12:00 PM Nutan Shinde <[email protected]> wrote: > Hi Rafael, > Can you please advise if there is a processor available in Nifi that can > be used to retrieve the path of my environment variable? > > Best Regards, > Nutan Shinde > > On Sat, Aug 10, 2024 at 6:10 AM Rafael Fracasso <[email protected]> > wrote: > >> Hi Nutan, >> you have to provide the full python3 path in the command path property >> >> Best Regards >> >> On Fri, Aug 9, 2024 at 11:34 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 >>> >>
