Running a TSV extractor using python3 throws the following error:
22:38:04 [Helpers$(akka://deepdive)] INFO Traceback (most recent call last):
22:38:04 [Helpers$(akka://deepdive)] INFO File "/opt/elementary-memex-ddlog/escort-review/udf/extract_test.py", line 12, in <module>
22:38:04 [Helpers$(akka://deepdive)] INFO import ddlib
22:38:04 [Helpers$(akka://deepdive)] INFO File "/home/eve/local/lib/python/ddlib/__init__.py", line 1, in <module>
22:38:04 [Helpers$(akka://deepdive)] INFO from dd import *
22:38:04 [Helpers$(akka://deepdive)] INFO ImportError: No module named 'dd'
However, if I open $HOME/local/lib/python/ddlib/__init__.py and change
from dd import *
from gen_feats import *
to
from .dd import *
from .gen_feats import *
and also make a similar change in gen_feats.py, then everything works.
Running a TSV extractor using python3 throws the following error:
However, if I open
$HOME/local/lib/python/ddlib/__init__.py
and changeto
and also make a similar change in gen_feats.py, then everything works.