[ 
https://issues.apache.org/jira/browse/NIFI-13824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ferenc Gerlits updated NIFI-13824:
----------------------------------
    Description: 
Dependencies for Python processors are defined in two places: the 
{{requirements.txt}} file in the package directory and the 
{{ProcessorDetails.dependencies}} field in the processor class.  Currently, 
NiFi first installs the dependencies defined in the former, and then separately 
those defined in the latter.

This is a problem, because a dependency in the second batch may depend on e.g., 
{{somepackage<2.0}} and if the first batch has already installed version 
{{2.3}} of {{{}somepackage{}}}, then the installation will fail.

In almost all cases, {{pip}} can find dependency versions which satisfy both 
sets of dependencies, but only if they are all listed in a single {{pip 
install}} command. So we need to merge the two sets of dependencies and install 
them in one go.

  was:
Dependencies for Python processors are defined in two places: the 
{{requirements.txt}} file in the package directory and the 
{{ProcessorDetails.dependencies}} field in the processor class.  Currently, 
NiFi first installs the dependencies defined in the former, and then separately 
those defined in the latter.

This is a problem, because a dependency in the second batch may depend on e.g., 
{{somepackage<2.0}} and if the first batch has already installed version 
{{2.3}} of {{somepackage}}, then the installation will fail.

In almost all cases, {{pip}} can find dependency versions which satisfy both 
sets of dependencies, but only if they are all listed in a single {{pip 
install}} command.  So we need to merge the two sets dependencies and install 
them in one go.


> Install Python processor dependencies in one go
> -----------------------------------------------
>
>                 Key: NIFI-13824
>                 URL: https://issues.apache.org/jira/browse/NIFI-13824
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Ferenc Gerlits
>            Assignee: Ferenc Gerlits
>            Priority: Minor
>
> Dependencies for Python processors are defined in two places: the 
> {{requirements.txt}} file in the package directory and the 
> {{ProcessorDetails.dependencies}} field in the processor class.  Currently, 
> NiFi first installs the dependencies defined in the former, and then 
> separately those defined in the latter.
> This is a problem, because a dependency in the second batch may depend on 
> e.g., {{somepackage<2.0}} and if the first batch has already installed 
> version {{2.3}} of {{{}somepackage{}}}, then the installation will fail.
> In almost all cases, {{pip}} can find dependency versions which satisfy both 
> sets of dependencies, but only if they are all listed in a single {{pip 
> install}} command. So we need to merge the two sets of dependencies and 
> install them in one go.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to