Running the run.sh script

785 views
Skip to first unread message

Patrice Yemmene

unread,
Feb 1, 2017, 1:32:02 PM2/1/17
to Daniel Povey, kaldi-help, Chiang, Chi-Lung
Hello,

I am having another issue where when I attempt to run the run.sh file, I get the following error message:

 line 50 local/voxforge_select.sh permission denied

I have granted permission to myself with all privileges to this file, but yet, I am not able to run the script successfully.

I was hoping someone would be able to assist me.

Kind regards,

Patrice Yemmene



On Tue, Jan 17, 2017 at 12:46 AM, Daniel Povey <dpo...@gmail.com> wrote:
You probably made a mistake earlier on, like forgetting to make a link
to local/, or being in the wrong directory.

On Mon, Jan 16, 2017 at 10:39 PM, Patrice Yemmene <yem...@gmail.com> wrote:
> The error says: ./run.sh: line 50: local/voxforge_select.sh: no such file or
> directory
>
> Thank you
> On Friday, January 13, 2017 at 12:46:33 AM UTC-6, Dan Povey wrote:
>>
>> Any time you are asking about an error you should show the actual error
>> message.
>>
>> On Thu, Jan 12, 2017 at 9:04 PM, Patrice Yemmene <yem...@gmail.com> wrote:
>> > Hello,
>> >
>> > When I follow the step in the Kaldi for dummies document, the last step
>> > is
>> > to create three scrips in Kaldi-trunk/egs/digits, and run them. One of
>> > the
>> > scripts is the run.sh script. When I attempt to run this scrip, I get an
>> > error message suggesting it cannot be found in local/voxforge.It does
>> > apear
>> > to me that I need to download the voxforge data.
>> >
>> > I already have my own data (from a minority. Is the voxforge data
>> > absolutely
>> > necessary to run the run.sh scrip?
>> >
>> > Thank you
>> >
>> > Patrice Yemmene
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "kaldi-help" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to kaldi-help+...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.

Daniel Povey

unread,
Feb 1, 2017, 1:35:50 PM2/1/17
to Patrice Yemmene, kaldi-help, Chiang, Chi-Lung
That file has correct permissions in the repository:

ls -l ../../../voxforge/s5/local/voxforge_select.sh

-rwxr-xr-x 1 dpovey fax 809 Mar  2  2016 ../../../voxforge/s5/local/voxforge_select.sh

(see the first "x").

There must be something messed up with your system.  Try again chmod +x local/voxforge_select.sh, and try running it directly from the shell:

local/voxforge_select.sh

but this is really a local system problem, you should find someone local with more UNIX experience to help.


Dan




sabr

unread,
Feb 2, 2017, 6:11:17 AM2/2/17
to kaldi-help
You are using some *nix OS, you can find the permission

$ ls -l
-rw-rw-r-- 1 user group 5484 Oct 21 19:29 run.sh

You can apply all permissions for all *.sh scripts under egs

$ cd path/to/kaldi/egs
$ find ./ -name "*.sh" -type f -exec chmod +x {} \;

OR just change permission of that particular file

$ cd /path/to/kaldi/egs/lre/v1
$ chmod +x run.sh

Then you can find that permission was granted by 

$ ls -l
-rwxrwxr-x 1 user group 5484 Oct 21 19:29 run.sh

Sabr

Patrice Yemmene

unread,
Feb 2, 2017, 9:48:19 PM2/2/17
to Daniel Povey, kaldi-help
Thank you very much. It worked

Patrice Yemmene

unread,
Feb 4, 2017, 6:09:50 PM2/4/17
to Daniel Povey, kaldi-help, Chiang, Chi-Lung
Hello,

And thank you for continuous assistance. below is another error message I get while runing the run.sh file:

--- Searching for OOV words ...
awk: cmd. line:1: fatal: cannot open file `data/local/vocab-full.txt' for reading (No such file or directory)
awk: fatal: cannot open file `data/local/vocab-full.txt' for reading (No such file or directory)
0 data/local/dict/vocab-oov.txt
0 data/local/dict/lexicon-iv.txt
--- Downloading a pre-trained Sequitur G2P model ...
conf/g2p_model: No such file or directory
Failed to download the g2p model!


I am not able to locate the vocab-full.txt file anywhere. Is it a file I was suppose to create? If so, what kind of data was needed in it?

Also, the vocab-oov.txt as well as the lexicon-iv.txt as there but empty. I was wondering what type of data was expected to be there

Thank you kindly for assisting.

Patrice Yemmene
Master of Science in Software Engineering, Candidate
University of Saint Thomas, Minnesota

Daniel Povey

unread,
Feb 4, 2017, 6:15:56 PM2/4/17
to Patrice Yemmene, kaldi-help, Chiang, Chi-Lung
Probably something went wrong earlier that meant that the file data/local/vocab-full.txt did not exist and the directory conf/ was not created.
I suspect you may have downloaded or obtained Kaldi in an unusual way, or you've moved stuff around, because conf/ is part of the directory tree in the repository.
Dan

Patrice Yemmene

unread,
Feb 4, 2017, 8:12:02 PM2/4/17
to Daniel Povey, kaldi-help, Chiang, Chi-Lung
Hello Dan,

Thank you very much. I did move my work from my virtual machine to another. However, I made sure kaldi was installed on th new virtual machine  before the work was moved over. Do know if re-installing kaldi would cause any issues?

Thank you

Patrice Yemmene
Master of Science in Software Engineering, Candidate
University of Saint Thomas, Minnesota

Daniel Povey

unread,
Feb 4, 2017, 8:15:17 PM2/4/17
to Patrice Yemmene, kaldi-help, Chiang, Chi-Lung
It shouldn't.  But I can't help with this type of debugging.  Figuring out where a file should have been written and finding the original source of the problem is something you'll have to do yourself.

Patrice Yemmene

unread,
Feb 4, 2017, 8:18:25 PM2/4/17
to Daniel Povey, kaldi-help, Chiang, Chi-Lung
Thank you very much. I should be able to figure it out.

Best regards,


Patrice Yemmene
Master of Science in Software Engineering, Candidate
University of Saint Thomas, Minnesota
Reply all
Reply to author
Forward
0 new messages