openai / deeptype

Code for the paper "DeepType: Multilingual Entity Linking by Neural Type System Evolution"
https://arxiv.org/abs/1802.01021
Other
651 stars 147 forks source link

successor_mask.pyx:1052:34: ambiguous overloaded method #38

Closed mshahriarinia closed 6 years ago

mshahriarinia commented 6 years ago

Error at building the project:

./deeptype/wikidata_linker_utils_src$ python setup.py install

Error compiling Cython file:
------------------------------------------------------------
...
            return_code = sscanf(line, "%256[^\n\t]\t%256[^\n\t]\t%256[^\n\t]", &context, &anchor, &target)
            if return_code != 3:
                num_broken += 1
                continue

            anchor_string = string(anchor)
                                 ^
------------------------------------------------------------

src/cython/wikidata_linker_utils/successor_mask.pyx:1052:34: ambiguous overloaded method

Error compiling Cython file:
------------------------------------------------------------
...
                        if len(source) > 0:
                            yield source
                    else:
                        num_missing += 1
                        with nogil:
                            missing.push_back(pair[string, string](anchor_string, string(target)))
                                                                                       ^
------------------------------------------------------------

src/cython/wikidata_linker_utils/successor_mask.pyx:1075:88: ambiguous overloaded method
building 'wikidata_linker_utils.successor_mask' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/morteza/zProject/deeptype/.env/lib/python3.6/site-packages/numpy/core/include -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c /Users/morteza/zProject/deeptype/wikidata_linker_utils_src/src/cython/wikidata_linker_utils/successor_mask.cpp -o build/temp.macosx-10.13-x86_64-3.6/Users/morteza/zProject/deeptype/wikidata_linker_utils_src/src/cython/wikidata_linker_utils/successor_mask.o -std=c++11 -Wno-unused-function -Wno-sign-compare -Wno-unused-local-typedef -Wno-undefined-bool-conversion -O3 -Wno-reorder
/Users/morteza/zProject/deeptype/wikidata_linker_utils_src/src/cython/wikidata_linker_utils/successor_mask.cpp:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
 ^
1 error generated.
error: command 'clang' failed with exit status 1
mshahriarinia commented 6 years ago

Downgrading from .28 to .26 resolved it pip install cython==0.26