Zsihovszki Krisztina created NIFI-13628:
-------------------------------------------
Summary: Using NumPy 2.0 breaks ChromaDB processors
Key: NIFI-13628
URL: https://issues.apache.org/jira/browse/NIFI-13628
Project: Apache NiFi
Issue Type: Bug
Reporter: Zsihovszki Krisztina
Assignee: Zsihovszki Krisztina
Fix For: python-extensions-2.0.0
PutChroma processor did not start when I used the Python class from
nifi-python-extensions repo for the first time.
The following error was reported:
{code:java}
File
".../repositories/nifi/nifi-assembly/target/nifi-2.0.0-SNAPSHOT-bin/nifi-2.0.0-SNAPSHOT/./python/framework/Controller.py",
line 71, in createProcessor
processor = processorClass(jvm=self.gateway.jvm)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: PutChroma.__init__() got an unexpected keyword argument 'jvm'{code}
I noticed that **kwargs was deleted from PutChroma._{_}init{_}_() when the
processor was moved to the new repo.
The reason for removal might have been the linter which marks **kwargs as
unused.
_ARG002 Unused method argument: `kwargs`_
Although Contoller.py on NiFi side would like to pass self.gateway.jvm in the
constructor.
When I put back **kwargs, the processor started as usual.
A solution can be to put back **kwargs and supress the linter warning.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)