Giveme5W1H icon indicating copy to clipboard operation
Giveme5W1H copied to clipboard

Fails to install after 'giveme5w1h-corenlp install'

Open sidharth3 opened this issue 5 years ago • 7 comments

I was trying the installation process as described in the readme. However after the second line, I run into an error and am unable to figure out why. Please help.

Desktop % giveme5w1h-corenlp install mkdir: runtime-resources: File exists Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/giveme5w1h-corenlp", line 11, in load_entry_point('giveme5w1h==1.0.17', 'console_scripts', 'giveme5w1h-corenlp')() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Giveme5W1H/examples/startup/environment.py", line 9, in start RuntimeResourcesInstaller.check_and_install() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Giveme5W1H/examples/startup/util.py", line 54, in check_and_install check_output(cmd, shell=True, cwd=path_giveme5w_installation) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'mkdir runtime-resources && cd runtime-resources && wget http://nlp.stanford.edu/software/stanford-corenlp-full-2017-06-09.zip && unzip stanford-corenlp-full-2017-06-09.zip && rm stanford-corenlp-full-2017-06-09.zip && wget http://nlp.stanford.edu/software/stanford-english-corenlp-2017-06-09-models.jar && mv stanford-english-corenlp-2017-06-09-models.jar stanford-corenlp-full-2017-06-09/ && cd ..' returned non-zero exit status 1.

Versions (please complete the following information):

  • OS: [e.g. MacOS 10.15]
  • Python Version [e.g. 3.8]
  • Giveme5W1H Version [e.g. 1.2]
  • Stanford CoreNLP Version

sidharth3 avatar Dec 23 '19 03:12 sidharth3

What I did to install it was to download version 3.5.2 here: https://stanfordnlp.github.io/CoreNLP/history.html then I extracted the package and the terminal, I went to the directory containing the extracted folder and typed the command there. I also had to install Java 11, but I think 8 would have worked as well.

MichaelAGunn avatar Dec 25 '19 14:12 MichaelAGunn

What command did you type after going to the directory that contained the extracted folder?

sidharth3 avatar Dec 27 '19 01:12 sidharth3

Interesting. Could you execute the commands that are failing manually, i.e., from a shell, and post the output here?

mkdir runtime-resources
cd runtime-resources
wget http://nlp.stanford.edu/software/stanford-corenlp-full-2017-06-09.zip
unzip stanford-corenlp-full-2017-06-09.zip
rm stanford-corenlp-full-2017-06-09.zip
wget http://nlp.stanford.edu/software/stanford-english-corenlp-2017-06-09-models.jar
mv stanford-english-corenlp-2017-06-09-models.jar stanford-corenlp-full-2017-06-09/ 

fhamborg avatar Jan 14 '20 23:01 fhamborg

@sidharth3 you got any info on this?

fhamborg avatar Jan 21 '20 21:01 fhamborg

I had this same issue as @sidharth3 described ( I am using OSX 10.15.3 and python 3.7 ). I have the same error log following mkdir: runtime-resources: File exists.

The root of my issue was I did not have wget installed prior to running the command giveme5w1h-corenlp install. I didn't realize wget was not installed on this machine till I removed the folder runtime-resources and re-ran the install and got the error message wget: command not found. After installing wget I had to remove the runtime-resources folder again in order for the install to go through, otherwise I would get the same error messages starting with mkdir: runtime-resources: File exists.

The runtime-resources folder was located at /usr/local/lib/python3.7/site-packages/Giveme5W1H/ I hope this helps anyone who has this issue.

K-Dasu avatar Feb 26 '20 22:02 K-Dasu

@K-Dasu it seems that the root cause of your issue might be a different one, e.g., that wget does not exist? crosslinking to the windows installation issue, which seems to be related https://github.com/fhamborg/Giveme5W1H/issues/33

fhamborg avatar Feb 27 '20 08:02 fhamborg

I had the same issue, @K-Dasu 's comment resolved the problem.

PepijnBoers avatar Mar 13 '20 16:03 PepijnBoers