philipperemy / stanford-openie-python

Stanford Open Information Extraction made simple!
ISC License
635 stars 102 forks source link

What python version does it suppport? #24

Closed CaucherWang closed 4 years ago

CaucherWang commented 4 years ago

I use it on python2.7 in a Linux environment. But many bugs occur when invoking this package. Does this package only support python3?

CaucherWang commented 4 years ago

File "/data/devlitatom/litatom/demands.py", line 2, in from openie import StanfordOpenIE File "/data/lit/lib/python2.7/site-packages/gevent/builtins.py", line 96, in import result = _import(*args, *kwargs) File "/data/devlitatom/litatom/stanfordopenie/openie/init.py", line 1, in from .openie import StanfordOpenIE # noqa File "/data/lit/lib/python2.7/site-packages/gevent/builtins.py", line 96, in import result = _import(args, **kwargs) File "/data/devlitatom/litatom/stanfordopenie/openie/openie.py", line 15 def init(self, core_nlp_version: str = '2018-10-05'):

such error like this.

philipperemy commented 4 years ago

It only supports python3. I will add a note to the README. Please update to python3.