HazyResearch / deepdive

DeepDive
deepdive.stanford.edu
1.95k stars 543 forks source link

ddlib not work in python3 #672

Open imnujf opened 5 years ago

imnujf commented 5 years ago

root@ubuntu4-virtual-machine:/udf# deepdive env python3 Python 3.4.3 (default, Nov 28 2017, 16:41:13) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information.

tsv_extractor Traceback (most recent call last): File "", line 1, in NameError: name 'tsv_extractor' is not defined from deepdive import Traceback (most recent call last): File "", line 1, in File "/root/local/lib/python/deepdive.py", line 3, in from ddlib.util import tsv_extractor,over,returns File "/root/local/lib/python/ddlib/init.py", line 3, in from .util import File "/root/local/lib/python/ddlib/util.py", line 68 s = re.sub(r'\(.)', lambda(m): '""' if m.group(1) == '"' else m.group(1), s) # XXX quotes and backslashes in arrays are escaped another time ^ SyntaxError: invalid syntax

[5]+ Stopped deepdive env python3 root@/udf# deepdive env python Python 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. from deepdive import *

It's work well!