-
Notifications
You must be signed in to change notification settings - Fork 462
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
Error Building Anserini on Windows #1466
Comments
Hi @paulowoicho - thanks for your interest! sorry, but no one on our team uses windows, so it's difficult for us to help... Your error message suggests that there are test failures... what's failing? Do you have access to a mac or linux machine? |
Thanks @lintool for getting back to me! Here are the tests that are failing:
I do not have access to a mac or Linux machine but I could install a Virtualbox that lets me use Linux on my computer |
Hey @paulowoicho, I get the same issue on Windows which is due to an encoding error - one workaround is to build without enabling tests by adding the following flag: So the full command would be: Otherwise, I recommend installing the Windows Subsystem for Linux if you can, since it makes development a lot easier |
Wow!it works! Thank you for your command! you save my life. |
This Command Should be put on The Main page because every time I face the same problem. I hope that you put it please. For windows Skip tests |
Sure, see #1848 |
Thanks Sir . But without any offence it is still now showing in the main page ( Main Read Me File ). |
It's in a pull request - it'll get merged once I get someone to sign off on it. |
Great and Big thanks for support and cooperation 👍 |
I'm not too familiar with the codebase, but I noticed a "raw" open in some places, e.g. here
Such statements could indeed cause encoding problems on Windows: when no I think it could be changed rather quickly with a method described here: https://dev.to/methane/python-use-utf-8-mode-on-windows-212i I'm not familiar with how does Maven run tests, but if it runs them using Python, then maybe passing |
Alternatively, running |
I skipped the tests and it was fine with that |
I have been having trouble building anserini on a windows computer using this command:
mvn clean package appassembler:assemble
. It keeps throwing the following error:I have Java 11 and Maven 3.6.3 installed:
What could I be doing wrong? Please help!
The text was updated successfully, but these errors were encountered: