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

when installing sequitur and mmseg, look for lib64 as well #1677

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

jtrmal
Copy link
Contributor

@jtrmal jtrmal commented Jun 10, 2017

should be addressing #1672


echo "export PYTHONPATH=\$PYTHONPATH:$wd/mmseg-1.3.0/lib/python${pyver}/site-packages"
site_packages_dir=$(cd ./mmseg-1.3.0; find $libdir -name "site-packages" -type d | head -n1)
Copy link
Contributor

@akshayc11 akshayc11 Jun 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

site_packages_dir=$(cd ./mmseg-1.3.0; find $lib_dir -name "site-packages" -type d | head -n1)

## the location of the mmseg.py file but using find seems more reliable
mmseg_file_lib=$(find ./mmseg-1.3.0/lib/ -type f -name mmseg.py | head -n 1)
mmseg_file_lib64=$(find ./mmseg-1.3.0/lib64/ -type f -name mmseg.py | head -n 1)
if [ -f $mmseg_file_lib ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason this was failing in my code. I tried the following:

if [ ! -z ${mmseg_file_lib+x} ]; then
  lib_dir=./lib/
elif [ ! -z ${mmseg_file_lib64+x} ]; then
  lib_dir=./lib64/
else
...

Based on https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash

@akshayc11
Copy link
Contributor

There was 1 typo, and 1 correction (using -z instead of -f) in the install_mmseg.sh. Please refer to the inline comments for more details.. Otherwise, worked in my machine. Looks good to me.

@jtrmal jtrmal force-pushed the mmseg_sequitur_fix branch from b9e035e to 33065c3 Compare June 11, 2017 12:14
@jtrmal
Copy link
Contributor Author

jtrmal commented Jun 11, 2017

Thanks for testing it. Now those issues should be addressed.
Just to be sure: did you test the sequitur install as well?
y.

@akshayc11
Copy link
Contributor

I did... Sequitur passed.

@danpovey
Copy link
Contributor

ok to merge, by me.

@jtrmal
Copy link
Contributor Author

jtrmal commented Jun 12, 2017 via email

@danpovey danpovey merged commit defc8bd into kaldi-asr:master Jun 13, 2017
kronos-cm added a commit to kronos-cm/kaldi that referenced this pull request Jun 15, 2017
* 'master' of https://github.com/kaldi-asr/kaldi: (140 commits)
  [egs] Fix failure in multilingual BABEL recipe (regenerate cmvn.scp) (kaldi-asr#1686)
  [src,scripts,egs] Backstitch code+scripts, and one experiment, will add more later. (kaldi-asr#1605)
  [egs] CNN+TDNN+LSTM experiments on AMI (kaldi-asr#1685)
  [egs,scripts,src] Tune image recognition examples; minor small changes. (kaldi-asr#1682)
  [src] Fix bug in looped computation (kaldi-asr#1673)
  [build] when installing sequitur and mmseg, look for lib64 as well (thanks: @akshayc11) (kaldi-asr#1677)
  [src] fix to gst-plugin/Makefile (remove -lkaldi-thread) (kaldi-asr#1680)
  [src] Cosmetic fixes to usage messages
  [egs]  Fix to some --proportional-shrink related example scripts (kaldi-asr#1674)
  [build] Fix small bug in configure
  [scripts] Fix small bug in utils/gen_topo.pl.
  [scripts] Add python script to convert nnet2 to nnet3 models (kaldi-asr#1611)
  [doc] Fix typo  (kaldi-asr#1669)
  [src] nnet3: fix small bug in checking code.  Thanks: @Maddin2000.
  [src] Add #include missing from previous commit
  [src] Fix bug in online2-nnet3 decoding RE dropout+batch-norm (thanks: Wonkyum Lee)
  [scripts] make errors getting report non-fatal (thx: Miguel Jette); add comment RE dropout proportion
  [src,scripts] Use ConstFst or decoding (half the memory; slightly faster).  (kaldi-asr#1661)
  [src] keyword search tools: fix Minimize() call, necessary due to OpenFst upgrade (kaldi-asr#1663)
  [scripts] do not fail if the ivector extractor belongs to different user (kaldi-asr#1662)
  ...
@jtrmal jtrmal deleted the mmseg_sequitur_fix branch November 20, 2017 19:24
Skaiste pushed a commit to Skaiste/idlak that referenced this pull request Sep 26, 2018
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

Successfully merging this pull request may close these issues.

3 participants