Hello,
I suggest to avoid eval, in main()
instead, after "import test" in main():
funcObj = global["test"].attr("test") // assuming your global["test"] is a
successfully imported module
resultObj = funcObj()
then check resultObj:
as well as extract-and-check, you can query repr/str, and is_none
Hello again,
I rewrite part of the code, but I didn't find my error.
My new code is:
cat ../src/DemiWu.cpp
#include
#include
#include
#include
#include
using namespace boost::python;
using namespace DemiWu;
#if PY_MAJOR_VERSION >= 3
# define INIT_MODULE PyInit_DemiWu