Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Installation.md #1259

Merged
merged 1 commit into from
Sep 27, 2022
Merged

Update Installation.md #1259

merged 1 commit into from
Sep 27, 2022

Conversation

yogeswarl
Copy link
Contributor

Hi,
The documentation requires a slight change to the installation.md file. The sparse retrieval still uses msmarco-passage.
I also encountered a runtime error for which I have appended the solution to the troubleshooting tip section.

Hi, 
The documentation requires a slight change to the installation.md file. The sparse retrieval still uses msmarco-passage. 
I also encountered a runtime error for which I have appended the solution to the troubleshooting tip section.
Copy link
Member

@lintool lintool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yogeswarl thanks for your contribution and apologies for the delay in getting back to you. A few clarification questions for you.

@@ -175,6 +175,7 @@ On a Linux system, the correct path might look something like `/usr/lib/jvm/java
Unfortunately, we are unable to offer more concrete advice since the actual path depends on your OS, which JDK you're using, and a host of other factors.
+ Windows uses GBK character encoding by default, which makes resource file reading in Anserini inconsistent with that in Linux and macOS.
To fix, manually set environment variable `set _JAVA_OPTIONS=-Dfile.encoding=UTF-8` to use `UTF-8` encoding.
+ When installing with Windows, there are times you will encounter the error. `RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd`. The solution to this is to check the version of your numpy. At the time of this writing, the latest numpy version is 1.23.2 which is incompatible with the API. We consider downgrading to `1.21.1`.This way the other dependant libraries also are compatible with the API version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you offer a bit more details on what's happening here? Is this a Windows only bug?

numpy version is 1.23.2 which is incompatible with the API.

Which API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because of the faiss-cpu library, I believe. I have noticed this in windows only in the latest 0.17.0 build. I have a personal Linux machine in which it worked fine. I also checked it with macOS Monterrey.

@lintool lintool merged commit 563e4e7 into castorini:master Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants