Rafael is right. This isn’t reasonably possible today. You could hack around 
and make it work but not something I would recommend. I had made an 
Anaconda/VirtualEnv controller service for some python AI stuff we are doing at 
Nvidia like 3 years ago but I’m sure that isn’t compatible with the projects 
current state anymore.

Ultimately you aren’t gonna be able to do this correctly with jython in the 
loop. Especially when you get into loading Python C native libraries, like CUDA 
for example. Not a fault of nifi or it’s design just too many edge cases that 
cannot fairly be expected for NiFi to address.

-Jeremy Dyer

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Rafael Fracasso <[email protected]>
Sent: Friday, September 8, 2023 4:55:40 PM
To: [email protected] <[email protected]>
Subject: Re: [NIFI] ExecuteScript

As far as I know, you cannot use any external library on executescript, only 
the native one on jython env.

But you can call native python to execute your script using executestreamcommand

On Fri, Sep 8, 2023 at 6:15 AM Quentin HORNEMAN GUTTON 
<[email protected]<mailto:[email protected]>> wrote:
Hello everyone,

I would like to know if it is possible to use the Etree or ElementPath library 
in an ExecuteScript processor with the "Python" script engine (which is 
Jython), or if it is possible to install modules for the Jython environment ?

I'm using NiFi 1.20.0

Best regards,

Reply via email to