openai / deeptype

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

Use Python 3.6 and Cython 0.26 to install wikidata_linker_utils #57

Open fengh16 opened 4 years ago

fengh16 commented 4 years ago

There are many problems when install wikidata_linker_utils with python3.7 or Cython > 0.26.

Issue about Cython >0.26:

Problems using Python3.7:

ArashAmani commented 4 years ago

Thank

There are many problems when install wikidata_linker_utils with python3.7 or Cython > 0.26.

Issue about Cython >0.26:

  • 38

Problems using Python3.7:

  • Python 3.7 introduced a change which made async a reserved keyword, but Cython < 0.27.2 has a statement await = None, which will cause an error SyntaxError: invalid syntax
  • If you use Python3.7 together with Cython0.27.2, you will get many problems like this:

‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’

thanks a lot. my problem has been solved. I create a virtual env with python 3.6 then install Cython 0.26