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

Instructions to run gentle on Linux (CLI) seem to be incomplete #192

Open
dhuv opened this issue Jul 20, 2018 · 8 comments
Open

Instructions to run gentle on Linux (CLI) seem to be incomplete #192

dhuv opened this issue Jul 20, 2018 · 8 comments

Comments

@dhuv
Copy link

dhuv commented Jul 20, 2018

The documentation (README.md) makes it seem that after I git clone, I can run "python3 align.py audiofile textfile" but that does not look like its the case. I go through and run ./install.sh which installs a lot of dependencies but eventually fails. (I will open a separate ticket for that)

Just want to make sure that it is expected that I run install.sh on Linux after "git clone". Can you list anything else?

Once I have a set of steps, I will setup a pull request for the README.md file.

@dhuv
Copy link
Author

dhuv commented Jul 25, 2018

FYI, I found a couple of problems with the Kaldi repository so I will be submitting pull requests there.

For this repository I will submit a pull request to README.md and perhaps install_deps.sh.

@gregsadetsky
Copy link

@dhuv, have you been able to locate the issue(s)? I'm having a hard time running install.sh right now. Thanks!

@dhuv
Copy link
Author

dhuv commented Sep 11, 2018

@gregsadetsky I have compiled it. What are the errors you are seeing?

@gregsadetsky
Copy link

Hey, thanks for the follow up.

I sifted through the error logs and it turns out that I needed to run the following for the compilation to work under Ubuntu 18.04 (hopefully this can be useful to others):

sudo apt update
sudo apt upgrade

sudo apt install python2.7

sudo apt-get install libblas-dev liblapack-dev

sudo apt-get install gfortran

After that and a ~2 hour compilation, python3 serve.py worked right out of the gate!

Cheers

@gregsadetsky
Copy link

gregsadetsky commented Sep 13, 2018

I'm attempting to compile it again on another machine (fresh Ubuntu 18.04 as well), and the steps above are not sufficient. The last error line reads

Makefile:5: kaldi/src/kaldi.mk: No such file or directory

I also see:

Makefile:30: kaldi.mk: No such file or directory
kaldi.mk does not exist; you have to run ./configure
Makefile:96: recipe for target 'kaldi.mk' failed    
make: *** [kaldi.mk] Error 1

and

***configure failed: Could not find file /include/fst/fst.h:
  you may not have installed OpenFst. See ../tools/INSTALL ***

is openfst (which I see is compiled) not installed at the correct location? Is something else tripping up the install?

Thanks


UPDATE:

editing gentle/ext/install_kaldi.sh and adding the correct path to openfst seemed to help:

configure .... --fst-root=../tools/openfst-1.6.5

@denseflux
Copy link

@gregsadetsky I don't have a folder named openfst-* in my tools folder. Any idea how this is loaded as a dependency, please?

@gregsadetsky
Copy link

Hey @denseflux -- I'm not sure. There is an openfst download/compilation step at some point. My feeling is that it happens during the Kaldi install (i.e., during install_kaldi.sh)

Perhaps you could try manually downloading openfst and compiling it (in the tools dir), and then changing install_kaldi.sh as I documented at the end of my comment?

@aolney
Copy link

aolney commented Oct 11, 2018

Looks like the openfst link has changed to this:

http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.5.tar.gz

suspect this is one reason why the docker image isn't building

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

No branches or pull requests

4 participants