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

Zsihovszki Krisztina reassigned NIFI-13495:
-------------------------------------------

    Assignee: Zsihovszki Krisztina

> 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
>
> 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 
> "/Users/kzsihovszki/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