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

David Handermann updated NIFI-13495:
------------------------------------
    Fix Version/s: python-extensions-2.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> PutChroma "unexpected keyword argument 'jvm'" error 
> ----------------------------------------------------
>
>                 Key: NIFI-13495
>                 URL: https://issues.apache.org/jira/browse/NIFI-13495
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Zsihovszki Krisztina
>            Assignee: Zsihovszki Krisztina
>            Priority: Major
>             Fix For: python-extensions-2.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to