Open dmib opened 5 years ago
I have also met such problem. The issue is because the automatically generatated classmath in verdictDB is designed for linux systems, where the multiple paths are connected by ":", instead of ";". In such case, directly using the JavaGateway.launch_gateway function will encounter the error. You can change the ":" as ";" in the verdictcontext.py file to ensure that the verdict_options instance can be successfully initialized.
After the installing pyverdict with Miniconda - that error happened after launching app.
Env: Win10 C:\Workspace\Miniconda3\python.exe --version Python 3.7.3
row verdict_jar_path = self._get_verdict_jar_path() returns C:\Workspace\Miniconda3\lib\site-packages\pyverdict\verdict_jar\verdictdb-core-0.5.9-jar-with-dependencies.jar
but that code works: from py4j.java_gateway import JavaGateway gateway = JavaGateway.launch_gateway(classpath="C:\Workspace\Miniconda3\lib\site-packages\pyverdict\verdict_jar\verdictdb-core-0.5.9-jar-with-dependencies.jar") verdict_options = gateway.jvm.org.verdictdb.commons.VerdictOption() print(verdict_options) output: org.verdictdb.commons.VerdictOption@7bd716c9