Message12194

Author mohamad.mahajna
Recipients jeff.allen, mohamad.mahajna, stefan.richthofer
Date 2018-12-04.09:17:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543915052.33.0.788709270274.issue2717@psf.upfronthosting.co.za>
In-reply-to
Content
Still the same error : 

public interface TrexClient{
  public void func1(PyObject[] args, String[] keywords);
}


PythonInterpreter interpreter = new PythonInterpreter();
        interpreter.exec("import sys");
        interpreter.exec("sys.path.append('/Users/mohamad.mahajna/IdeaProjects/new_stepsNG/aa/src/main/java/trex_stf_lib1')");
        interpreter.exec("from testAdd import *");
        PyObject trexClientClass = interpreter.get("testAdd");
        PyObject buildingObject = trexClientClass.__call__();
        TrexClient x = (TrexClient) buildingObject.__tojava__(TrexClient.class);
//        Map<String,PyObject> kwargs = new HashMap<>();
//        kwargs.put("cfg",new PyString("abcf"));
        x.func1(new PyObject[]{},new String[]{"cfg:123"});


Exception in thread "main" TypeError: func1() takes exactly 1 argument (3 given)
History
Date User Action Args
2018-12-04 09:17:32mohamad.mahajnasetmessageid: <1543915052.33.0.788709270274.issue2717@psf.upfronthosting.co.za>
2018-12-04 09:17:32mohamad.mahajnasetrecipients: + mohamad.mahajna, jeff.allen, stefan.richthofer
2018-12-04 09:17:32mohamad.mahajnalinkissue2717 messages
2018-12-04 09:17:31mohamad.mahajnacreate