python-mcparseface icon indicating copy to clipboard operation
python-mcparseface copied to clipboard

ImportError: cannot import name structured_graph_builder

Open tirtohadi opened this issue 7 years ago • 4 comments

Hi, I have the following error when running the script:

File "pyparseface.py", line 20, in from syntaxnet import sentence_pb2, structured_graph_builder ImportError: cannot import name structured_graph_builder

I understand that structured_graph_builder is part of syntaxnet? Do i need to run my script within a certain folder? Many thanks in advance

tirtohadi avatar Jun 26 '17 19:06 tirtohadi

Did you manage to solve the problem?

richiezwj avatar Aug 04 '17 18:08 richiezwj

Same issue. Seems like a missing pip package, but i couldn't figure out which.

gbolcer avatar Dec 18 '17 02:12 gbolcer

Same issue . Found any solutions ?

Angarish avatar Jan 08 '18 06:01 Angarish

Yes. Just add another entry in pyparseface.py.

sys.path.append(os.path.join(PROJECT_ROOT, 'models', 'syntaxnet'))

suhassumukh avatar Nov 27 '18 13:11 suhassumukh