You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Gregory Werner (JIRA)" <de...@uima.apache.org> on 2017/11/29 15:33:00 UTC

[jira] [Created] (UIMA-5657) Pythonnator cannot build because swig / swig_module info problem

Gregory Werner created UIMA-5657:
------------------------------------

             Summary: Pythonnator  cannot build because swig / swig_module info problem
                 Key: UIMA-5657
                 URL: https://issues.apache.org/jira/browse/UIMA-5657
             Project: UIMA
          Issue Type: Bug
            Reporter: Gregory Werner


I am using Python 2.7.  I Have uimacpp-2.4.0.   My swig version is 3.0.8.  I am working on Ubuntu 14.04.  SWIG version commands says:
{quote}Compiled with g++ [x86_64-pc-linux-gnu] Configured options: +pcre{quote}

When running make I get the following stack trace.  Is this a case of too high a version of swig?  The page [UIMA Python Annotators and the Pythonnator|http://uima.apache.org/d/uimacpp-2.4.0/docs/Python.html] says 1.3.29 or later.

{code:java}
g++ -Wall -x c++ -DDEBUG -g -fno-inline -fno-default-inline -fPIC  -I/home/greg/spacy/uimacpp/include -I/home/greg/spacy/uimacpp/include/apr-1 -g -I/usr/include/python2.7 -DSWIG3_0_8 -DPYTHONLIBRARYNAME=\"libpython2.7.so\" -DPYTHON2_7 -Wno-deprecated -c pythonnator.cpp
In file included from /home/greg/spacy/uimacpp/include/uima/engine.hpp:46:0,
                 from /home/greg/spacy/uimacpp/include/uima/annotator_context.hpp:48,
                 from /home/greg/spacy/uimacpp/include/uima/api.hpp:36,
                 from pythonnator.cpp:21:
/home/greg/spacy/uimacpp/include/unicode/unistr.h: In member function ‘icu_3_6::UnicodeString& icu_3_6::UnicodeString::replace(int32_t, int32_t, UChar32)’:
/home/greg/spacy/uimacpp/include/unicode/unistr.h:3776:9: warning: variable ‘isError’ set but not used [-Wunused-but-set-variable]
   UBool isError = FALSE;
         ^
/home/greg/spacy/uimacpp/include/unicode/unistr.h: In member function ‘icu_3_6::UnicodeString& icu_3_6::UnicodeString::append(UChar32)’:
/home/greg/spacy/uimacpp/include/unicode/unistr.h:4012:9: warning: variable ‘isError’ set but not used [-Wunused-but-set-variable]
   UBool isError = FALSE;
         ^
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:2644: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:2577:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int 
 ^
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:2577:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int 
 ^
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:2577:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int 
 ^
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:2577:1: note: declared here
 SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int 
 ^
/home/greg/spacy/uimacpp/lib/base.mak:116: recipe for target 'pythonnator.o' failed
make: *** [pythonnator.o] Error 1
{code}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)