dnanhkhoa / python-vncorenlp

A Python wrapper for VnCoreNLP using a bidirectional communication channel.
MIT License
55 stars 18 forks source link

raise FileNotFoundError, even when java have been installed #1

Closed nvnhat95 closed 6 years ago

nvnhat95 commented 6 years ago

I have tried your example code but there was an issue

File "<stdin>", line 2, in <module>
  File "/home/cpu10508-local/.virtualenvs/dl4cv/lib/python3.5/site-packages/vncorenlp/vncorenlp.py", line 53, in __init__
    raise FileNotFoundError('Java was not found, please install JRE or JDK 1.8 first.')

I have installed java though

>>> import os
>>> os.system("java -version")
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
0
dnanhkhoa commented 6 years ago

Hi @nvnhat95, Thanks for your report, I fixed this issue so please update the package to the latest version. Thanks! :D