openai / deeptype

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

Issues installing wikidata_linker_utils_src with Cython 0.28 #33

Open lucolivi opened 6 years ago

lucolivi commented 6 years ago

I had issues installing wikidata_linker_utils_src with Cython 0.28 (as per allowed by the requirements).

Rolling back to 0.26 worked fine.

BettyHcZhang commented 5 years ago

I also have problems on this issue,and I had rolled back Cython to 0.26。It's not worked too. gcc (Ubuntu 6.5.0-2ubuntu1~14.04.1) 6.5.0 Cython 0.26 Python 3.6.8 :: Anaconda, Inc tensorflow 1.12.0 Can anybody help me?Thanks! Error msg as following: Error compiling Cython file:

...
                    continue
                with gil:
                    decoded = source.decode("utf-8")
                    decoded = (decoded[0].upper() + decoded[1:]).encode("utf-8")
                    uppercased_in_python = decoded
                self._redirections[string(uppercased_in_python)] = string(dest)
                                                                        ^
------------------------------------------------------------

src/cython/wikidata_linker_utils/successor_mask.pyx:70:73: ambiguous overloaded method
kevingeng commented 5 years ago

I have save problems when run "python3 setup.py build" for wikidata_linker_utils_src

some like this: successor_mask.pyx:1046:38: Unicode literals do not support coercion to C types other than Py_UNICODE/Py_UCS4 (for characters) or Py_UNICODE* (for strings).

last one like this: successor_mask.pyx:1054:34: ambiguous overloaded method


I am running in a docker container, with python 3.7.3; cython 0.29.7