sina-al / pynlp

A pythonic wrapper for Stanford CoreNLP.
MIT License
106 stars 11 forks source link

TypeError on running `python -m pynlp` #17

Closed sooheon closed 6 years ago

sooheon commented 6 years ago

I'm getting the following error. It looks like the protobuf package is out of date?

$ python3 -m pynlp
Traceback (most recent call last):
  File "/Users/sooheon/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/Users/sooheon/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/Users/sooheon/.pyenv/versions/3.6.1/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/Users/sooheon/.pyenv/versions/nlp/lib/python3.6/site-packages/pynlp/__init__.py", line 1, in <module>
    from .client import StanfordCoreNLP
  File "/Users/sooheon/.pyenv/versions/nlp/lib/python3.6/site-packages/pynlp/client.py", line 3, in <module>
    from .wrapper import Document
  File "/Users/sooheon/.pyenv/versions/nlp/lib/python3.6/site-packages/pynlp/wrapper.py", line 1, in <module>
    from pynlp.protobuf import from_bytes, to_bytes
  File "/Users/sooheon/.pyenv/versions/nlp/lib/python3.6/site-packages/pynlp/protobuf/__init__.py", line 5, in <module>
    from .CoreNLP_pb2 import Document
  File "/Users/sooheon/.pyenv/versions/nlp/lib/python3.6/site-packages/pynlp/protobuf/CoreNLP_pb2.py", line 203, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __init__() got an unexpected keyword argument 'file'
sooheon commented 6 years ago

Fixed with reinstall 😅