Now that I managed to install UIMA C++ in macOS Sierra, I need to build the
sample Pythonnator project.

I am getting the following error:

$ cd $UIMACPP_HOME/scriptators/python
$ make
g++-5 -Wall -x c++ -DDEBUG -g -fno-inline -fno-default-inline -fPIC
 -I/usr/local/uimacpp/include -I/usr/local/opt/apr/libexec/include/apr-1
-I/usr/local/opt/icu4c/include -I/usr/local/opt/xerces-c/include -g
-I/usr/include/python2.7 -DSWIG3_0_10 -DPYTHONLIBRARYNAME=\"libpython2.7.so\"
-DPYTHON2_7 -Wno-deprecated -c pythonnator.cpp
pythonnator.cpp: In member function 'virtual uima::TyErrorId
Pythonnator::initialize(uima::AnnotatorContext&)':
pythonnator.cpp:192:56: error: too few arguments to function
'swig_module_info* SWIG_Python_GetModule(void*)'
       swig_module_info *module = SWIG_Python_GetModule();
                                                        ^
In file included from pythonnator.cpp:57:0:
uimapywrap.h:2642:1: note: declared here
 SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
 ^
pythonnator.cpp:235:22: error: invalid conversion from 'void*' to
'PyObject* {aka _object*}' [-fpermissive]
            ac_type, 0);
                      ^
pythonnator.cpp:235:22: error: too few arguments to function 'PyObject*
SWIG_Python_NewPointerObj(PyObject*, void*, swig_type_info*, int)'
In file included from pythonnator.cpp:57:0:
uimapywrap.h:2575:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type,
int flags) {
 ^
pythonnator.cpp: In member function 'virtual uima::TyErrorId
Pythonnator::typeSystemInit(const uima::TypeSystem&)':
pythonnator.cpp:289:18: error: invalid conversion from 'void*' to
'PyObject* {aka _object*}' [-fpermissive]
        ts_type, 0);
                  ^
pythonnator.cpp:289:18: error: too few arguments to function 'PyObject*
SWIG_Python_NewPointerObj(PyObject*, void*, swig_type_info*, int)'
In file included from pythonnator.cpp:57:0:
uimapywrap.h:2575:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type,
int flags) {
 ^
pythonnator.cpp: In member function 'virtual uima::TyErrorId
Pythonnator::process(uima::CAS&, const uima::ResultSpecification&)':
pythonnator.cpp:362:53: error: invalid conversion from 'void*' to
'PyObject* {aka _object*}' [-fpermissive]
        reinterpret_cast<void *>( &_cas), cas_type, 0);
                                                     ^
pythonnator.cpp:362:53: error: too few arguments to function 'PyObject*
SWIG_Python_NewPointerObj(PyObject*, void*, swig_type_info*, int)'
In file included from pythonnator.cpp:57:0:
uimapywrap.h:2575:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type,
int flags) {
 ^
pythonnator.cpp:372:18: error: invalid conversion from 'void*' to
'PyObject* {aka _object*}' [-fpermissive]
        rs_type, 0);
                  ^
pythonnator.cpp:372:18: error: too few arguments to function 'PyObject*
SWIG_Python_NewPointerObj(PyObject*, void*, swig_type_info*, int)'
In file included from pythonnator.cpp:57:0:
uimapywrap.h:2575:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type,
int flags) {
 ^
make: *** [pythonnator.o] Error 1

---

$ swig -version


SWIG Version 3.0.10


Compiled with clang++ [x86_64-apple-darwin16.1.0]


Configured options: +pcre


Please see http://www.swig.org for reporting bugs and further information


----


$ python --version

Python 2.7.10



Anyone have a clue how to fix this?


Thank you,

William

Reply via email to