c-amr / camr

Transition-based tree-to-graph AMR Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command 'swig3.0' not found.

natewatson999 opened this issue · comments

I am having an issue with scripts/config.sh :

The command 'swig3.0' is either not present or placed incorrectly. Here is the final section of the script output:

inflating: stanford-corenlp-full-2013-06-20/xom.jar
inflating: stanford-corenlp-full-2013-06-20/jollyday.jar
Setup Charniak Parser ...
You are using pip version 6.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting bllipparser
Downloading bllipparser-2016.9.11.tar.gz (555kB)
100% |████████████████████████████████| 557kB 838kB/s
Complete output from command python setup.py egg_info:
Generating CharniakParser SWIG wrapper files
Running 'swig3.0 -python -c++ -module CharniakParser -Ifirst-stage/PARSE/ -Wall -builtin -outdir python/bllipparser -o first-stage/PARSE/swig/wrapper.C first-stage/PARSE/swig/wrapper.i'
Error while running command: Command 'swig3.0' not found.
Build failed!

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-roHf4r/bllipparser

This is occurring on 64bit Amazon Linux 2017.03 .

commented
commented

I am also getting the same issue on a Linux machine. I downloaded the latest swig 3.0.xx but somehow the code is not able to find it.

You can try to install swig3.0 using apt-get

sudo apt-get update -y
sudo apt-get install -y swig3.0