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

Installation of sequitur and mmseg fails (Prerequisites for GALE Mandarin) #1672

Closed
akshayc11 opened this issue Jun 8, 2017 · 8 comments
Closed

Comments

@akshayc11
Copy link
Contributor

I am not sure if this is system dependent, but here is my setup:
I have a custom pythonpath where I have installed virtualenv, from which I have created a separate virtual environment.

When I try to run

cd $KALDI_ROOT/tools
extras/install_sequitur.sh

I noticed that the installation script expects the setup.py to install the libraries at <sequitur_dir>/lib
However, the system installs it in <sequitur_dir>/lib64
A similar problem arose in the installation of mmseg

extras/install_mmseg.sh

Changing the installation lines that refer to lib/ to lib64/ fixed that issue for me.

I have attached a patch that I have created for that here. If you think this should be done, please feel free to apply the patch and commit it.

fix_extra_tool_install.patch.txt

Akshay

@jtrmal
Copy link
Contributor

jtrmal commented Jun 8, 2017 via email

@danpovey
Copy link
Contributor

danpovey commented Jun 8, 2017 via email

@akshayc11
Copy link
Contributor Author

akshayc11 commented Jun 9, 2017

When you specify the prefix, I believe the setup.py creates a lib (in my case lib64) folder, into which it installs the python-specific site-packages. I believe the issue may be arising due to something akin to this: Linuxbrew/legacy-linuxbrew#443

I am building kaldi in a centOS instance (which is an RHEL fork)

One of the comments in the above issue was:

Looking at the Python bug tracker, this appears to be a change that certain Linux vendors make to their system Pythons to support mixed 32/64-bit systems. OpenSuSE does this; Ubuntu trusty (afaict, in my hands) does not. Apparently RHEL does. Linuxbrew or pyenv pythons should not.

I guess I am one of the unlucky few facing this issue.

@danpovey
Copy link
Contributor

danpovey commented Jun 9, 2017 via email

@jtrmal
Copy link
Contributor

jtrmal commented Jun 10, 2017 via email

@jtrmal
Copy link
Contributor

jtrmal commented Jun 10, 2017

I created a fix for that. it would be great if @akshayc11 could test for lib64 case -- I tested for debian and seems to work for lib/ case.
y.

@akshayc11
Copy link
Contributor Author

@jtrmal I tested the PR, and have added some comments there... Once those are addressed, I think the issue is fixed.

@johnjosephmorgan
Copy link
Contributor

I am running the voxforge recipe. I am having a problem with sequitur. It looks like sequitur gets installed under $KALDI_ROOT/tools/sequitur-g2p, but the voxforge dictionary processing scripts expect sequitur to be under $KALDI_ROOT/tools/sequitur.

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