Message12194
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) |
|
Date |
User |
Action |
Args |
2018-12-04 09:17:32 | mohamad.mahajna | set | messageid: <1543915052.33.0.788709270274.issue2717@psf.upfronthosting.co.za> |
2018-12-04 09:17:32 | mohamad.mahajna | set | recipients:
+ mohamad.mahajna, jeff.allen, stefan.richthofer |
2018-12-04 09:17:32 | mohamad.mahajna | link | issue2717 messages |
2018-12-04 09:17:31 | mohamad.mahajna | create | |
|