tsroten / pynlpir

A Python wrapper around the NLPIR/ICTCLAS Chinese segmentation software.
MIT License
566 stars 135 forks source link

License error #107

Closed yuanlily closed 6 years ago

yuanlily commented 6 years ago

I have run pynlpir update and it shows license updated. But when I run, I still get the following error. File "test.py", line 9, in pynlpir.open() File "/Library/Python/2.7/site-packages/PyNLPIR-0.5.2-py2.7.egg/pynlpir/init.py", line 107, in open _attempt_to_raise_license_error(data_dir) File "/Library/Python/2.7/site-packages/PyNLPIR-0.5.2-py2.7.egg/pynlpir/init.py", line 153, in _attempt_to_raise_license_error raise LicenseError('Your license appears to be ' pynlpir.LicenseError: Your license appears to be missing. Try running "pynlpir update".

error log: [2018-03-06 17:51:24] Can not open License file /Library/Python/2.7/site-packages/PyNLPIR-0.5.2-py2.7.egg/pynlpir/Data/NLPIR.user

contents in NLPIR.user: Not Found

yuanlily commented 6 years ago

Solved. I download the license from the nlpir website and replace my NLPIR.user with the new license.