Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddlib not work in python3 #672

Open
imnujf opened this issue Aug 1, 2018 · 0 comments
Open

ddlib not work in python3 #672

imnujf opened this issue Aug 1, 2018 · 0 comments

Comments

@imnujf
Copy link

imnujf commented Aug 1, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant