danielhers / tupa

Transition-based UCCA Parser
https://danielhers.github.io/tupa
GNU General Public License v3.0
72 stars 24 forks source link

Parser import bug in latest release? #38

Closed borgr closed 6 years ago

borgr commented 6 years ago

I installed a clean version of tupa and tried to import Parser:

`

from tupa.parse import Parser Traceback (most recent call last): File "", line 1, in File "/cs/labs/oabend/borgr/envs/USim/lib/python3.5/site-packages/tupa/parse.py", line 11, in from semstr.evaluate import EVALUATORS, Scores File "/cs/labs/oabend/borgr/envs/USim/lib/python3.5/site-packages/semstr/evaluate.py", line 16, in from semstr.evaluation import amr, sdp, conllu File "/cs/labs/oabend/borgr/envs/USim/lib/python3.5/site-packages/semstr/evaluation/amr.py", line 9, in sys.path.insert(0, os.path.dirname(importlib.util.find_spec("smatch.smatch").origin)) # to find amr.py from smatch AttributeError: module 'importlib' has no attribute 'util' `

danielhers commented 6 years ago

Should be fixed by https://github.com/danielhers/semstr/commit/26d8316455eafba7dbec630dbdeff94cf5fa69bc - will be in next release.

danielhers commented 6 years ago

Fixed in 1.3.6 - please verify.