-
Notifications
You must be signed in to change notification settings - Fork 218
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
IOError: [Errno 22] Invalid argument #8
Comments
this seems to be an issue in the java call to the meteor metric package. What worked for me was to change the memory allocation in
from -Xmx2G to -Xmx1G . Can you please verify?
|
Thanks @temporaer. |
@AmitMY I cannot reproduce your issue. I installed the package and all dependencies in a new anaconda environment on windows, manually went through the steps in The output is:
|
Installed anaconda on a new ubuntu server. # Anaconda installation
### Following: https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-16-04
cd tmp
curl -O https://repo.continuum.io/archive/Anaconda2-5.1.0-Linux-x86_64.sh
bash Anaconda2-5.1.0-Linux-x86_64.sh # Installing in ~/anaconda2
source ~/.bashrc
conda create --name dev python=2
source activate dev # To activate the environment every time?
. deactivate # To deactivate
conda update conda
conda update anaconda
# Installing Java
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda
conda install java-jdk
java --version
# Installing NLG Eval
cd ~/thesis
git clone https://github.com/Maluuba/nlg-eval.git
cd nlg-eval
pip install -e .
./setup.sh Then, ran the script (from README): nlg-eval --hypothesis=examples/hyp.txt --references=examples/ref1.txt --references=examples/ref2.txt Now METEOR works! However, this is the output:
Now, if I run Just to cover all bases, I did ran this both in a custom conda environment, and outside of a custom environment, no change |
Are you sure you are in the environment named |
So basically I did ran "deactivate" on first run (just like the order of commands above), but to make sure I need the environment I ran everything again in the environment. I now removed the |
i ran all your commands in the same order except i did not run the following 4:
and it worked for me. I suspect this is still an environment issue. To confirm, wherever you run the
? |
Sure. conda list
Yes, all versions are identical to README versions. java -version
|
Environment looks ok. Does something from https://stackoverflow.com/questions/15274696/importerror-in-importing-from-sklearn-cannot-import-name-check-build help? Unfortunately, I am unable to reproduce as this seems to likely be a scikit-learn install issue. |
|
In general I find that installing certain things like |
Confirmed on both Windows and Mac.
Running the following (really simple) code:
On your example files, with no change, results in:
Environment:
The text was updated successfully, but these errors were encountered: