You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your open-source contribution. I would like to ask you a question regarding the environment setup.
When running the following line of code:
from pyserini.search import LuceneSearcher, get_topics, get_qrels
I encounter the following error:
Traceback (most recent call last):
File "D:\PycharmProjects\RankGPT\demo.py", line 3, in
from pyserini.search import get_qrels
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\search_init_.py", line 17, in
from .base import get_topics, get_topics_with_reader, get_qrels_file, get_qrels
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\search_base.py", line 25, in
from pyserini.pyclass import autoclass
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\pyclass.py", line 31, in
from jnius import autoclass, cast
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\jnius_init.py", line 18, in
java = get_java_setup(sys.platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\jnius\env.py", line 60, in get_java_setup
JAVA_HOME = get_jdk_home(platform)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\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
Apart from the environment specified in requirements.txt, is there any additional setup required? Looking forward to your reply!
The text was updated successfully, but these errors were encountered:
Hi! Installing Pyserini on Windows can be tricky. You can refer to the official repo for more details: Pyserini, Anserini (dependency). In Anserini, the Windows tips mention: “If you are using Windows, please use WSL2 to build Anserini.”
Alternatively, you can avoid using Pyserini if you only need to: (i) Download data, consider using ir-datasets. (ii) Run BM25 retrieval, consider bm25s, which doesn’t require Java.
---- Replied Message ----
| From | Weiwei ***@***.***> |
| Date | 12/30/2024 10:13 |
| To | sunnweiwei/RankGPT ***@***.***> |
| Cc | MaoMaoStudents ***@***.***>,
Author ***@***.***> |
| Subject | Re: [sunnweiwei/RankGPT] Exception: Unable to find JAVA_HOME (Issue #29) |
Hi! Installing Pyserini on Windows can be tricky. You can refer to the official repo for more details: Pyserini, Anserini (dependency). In Anserini, the Windows tips mention: “If you are using Windows, please use WSL2 to build Anserini.”
Alternatively, you can avoid using Pyserini if you only need to: (i) Download data, consider using ir-datasets. (ii) Run BM25 retrieval, consider bm25s, which doesn’t require Java.
Hope this helps!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Dear Author,
Thank you for your open-source contribution. I would like to ask you a question regarding the environment setup.
When running the following line of code:
from pyserini.search import LuceneSearcher, get_topics, get_qrels
I encounter the following error:
Traceback (most recent call last):
File "D:\PycharmProjects\RankGPT\demo.py", line 3, in
from pyserini.search import get_qrels
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\search_init_.py", line 17, in
from .base import get_topics, get_topics_with_reader, get_qrels_file, get_qrels
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\search_base.py", line 25, in
from pyserini.pyclass import autoclass
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\pyserini\pyclass.py", line 31, in
from jnius import autoclass, cast
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\jnius_init.py", line 18, in
java = get_java_setup(sys.platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\Lib\site-packages\jnius\env.py", line 60, in get_java_setup
JAVA_HOME = get_jdk_home(platform)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\Anaconda3\envs\rankgpt-3.12\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
Apart from the environment specified in requirements.txt, is there any additional setup required? Looking forward to your reply!
The text was updated successfully, but these errors were encountered: