Skip to content

hi! I have tried to run the code but I really can't solve the following problem. I have java installed and have set the environment path. But It still can't work. #2

@Lanskttee

Description

@Lanskttee

Traceback (most recent call last):
File "D:\pycharm\KB-BINDER-main\few_shot_kbqa.py", line 12, in
from pyserini.search import FaissSearcher, LuceneSearcher
File "D:\pycharm\venv\lib\site-packages\pyserini\search_init_.py", line 17, in
from .base import JQuery, JQueryGenerator, JDisjunctionMaxQueryGenerator, get_topics,
File "D:\pycharm\venv\lib\site-packages\pyserini\search_base.py", line 26, in
from pyserini.pyclass import autoclass
File "D:\pycharm\venv\lib\site-packages\pyserini\pyclass.py", line 27, in
from jnius import autoclass, cast
File "D:\pycharm\venv\lib\site-packages\jnius_init
.py", line 18, in
java = get_java_setup(sys.platform)
File "D:\pycharm\venv\lib\site-packages\jnius\env.py", line 60, in get_java_setup
JAVA_HOME = get_jdk_home(platform)
File "D:\pycharm\venv\lib\site-packages\jnius\env.py", line 335, in get_jdk_home
raise Exception('Unable to find JAVA_HOME')
Exception: Unable to find JAVA_HOME

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions