Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FileNotFoundError: [Errno 2] No such file or directory: '/root/Documents/MFA/wav/train/mfcc/raw_mfcc.0.scp' #91

Closed
chenbblei opened this issue Sep 1, 2018 · 15 comments

Comments

@chenbblei
Copy link

I got the errors below,pelease help me to solve it
Calculating MFCCs...
Traceback (most recent call last):
File "aligner/command_line/align.py", line 186, in
File "aligner/command_line/align.py", line 146, in validate_args
File "aligner/command_line/align.py", line 93, in align_corpus
File "aligner/aligner/pretrained.py", line 71, in init
File "aligner/aligner/pretrained.py", line 117, in setup
File "aligner/aligner/base.py", line 80, in setup
File "aligner/corpus.py", line 970, in initialize_corpus
File "aligner/corpus.py", line 848, in create_mfccs
File "aligner/corpus.py", line 859, in _combine_feats
FileNotFoundError: [Errno 2] No such file or directory: '/root/Documents/MFA/wav/train/mfcc/raw_mfcc.0.scp'
Failed to execute script align

@shartoo
Copy link

shartoo commented Sep 3, 2018

i got an error same as you.

No such file or directory: '/home/top/Documents/MFA/wav/corpus_data/split1/feats.0.scp'

@mmcauliffe
Copy link
Member

Hi both, could you please let me know what system this is running on, as well as any errors in ~/Documents/MFA/DATASET_NAME/corpus_data/splitX/make_mfcc.0.log. @chenbblei it looks like you're running version 1.0 and @shartoo running version 1.1 beta, is that right?

@shartoo
Copy link

shartoo commented Sep 11, 2018

@mmcauliffe yes,exractly!I just don't understand where the path /home/top/Documents/MFA/wav/corpus_data/ was created and why?

@agangzz
Copy link

agangzz commented Sep 11, 2018

FileNotFoundError: [Errno 2] No such file or directory: '/data1/MFATMP/B17B4EBE56E267927823E331D29E6E0C/train/mfcc/raw_mfcc.0.scp'

I got the same error when I used centos 7.0 (but ubuntu 14.04 works well).

cat make_mfcc.0.log
compute-mfcc-feats: error while loading shared libraries: libkaldi-hmm.so: cannot open shared object file: No such file or directory
copy-feats: error while loading shared libraries: libkaldi-hmm.so: cannot open shared object file: No such file or directory

@sirifarif
Copy link

sirifarif commented Sep 13, 2018

@shartoo @mmcauliffe
I think inside the tempDir/<corpus_name>/corpus_data directory, the feats.scp and cmvn.scp files are missing. The feats.scp file is created but its empty.

After a little debugging, I found out that, in the corpus.py file, these two files (feats.scp, cmvn.scp ) are never written.

I created a branch to fix the issue but its not complete.

@Jackiexiao
Copy link

@chenbblei try

sudo apt-get install libatlas3-base

@sirifarif
Copy link

@Jackiexiao Did you compile it from source?

@shartoo
Copy link

shartoo commented Sep 19, 2018

@Jackiexiao @sirifarif @chenbblei I have ran the command

sudo apt-get install libatlas3-base

nothing changed..

No such file or directory: '/home/top/Documents/MFA/wav/corpus_data/split1/feats.0.scp'

umber of speakers in corpus: 1, average number of utterances per speaker: 1340.0
Creating dictionary information...
Setting up corpus_data directory...
Generating base features (mfcc)...
[3581] Failed to execute script align
Traceback (most recent call last):
File "aligner/command_line/align.py", line 224, in
File "aligner/command_line/align.py", line 181, in validate_args
File "aligner/command_line/align.py", line 129, in align_corpus
File "aligner/aligner/pretrained.py", line 61, in init
File "aligner/aligner/base.py", line 50, in init
File "aligner/aligner/pretrained.py", line 79, in setup
File "aligner/aligner/base.py", line 55, in setup
File "aligner/features/config.py", line 153, in generate_features
File "aligner/features/config.py", line 141, in generate_base_features
File "aligner/corpus.py", line 813, in combine_feats
FileNotFoundError: [Errno 2] No such file or directory: '/home/top/Documents/MFA/wav/corpus_data/split1/feats.0.scp'

@mmcauliffe
Copy link
Member

@shartoo That directory is created to store temporary files needed by Kaldi. The make_mfcc.0.log file will give error outputs when calling the Kaldi binary that creates MFCCs (compute-mfcc-feats).

@sirifarif There shouldn't be any explicit creation of those files, they get created following successful calling of the compute-mfcc-feats and compute-cmvn-stats. The lack of these files suggests that something is going wrong with the calls to Kaldi binaries.

I'll try to add some better messages for when feature generation doesn't work, but that won't fix the underlying issue, which is probably that it's lacking a link to a particular library. The workaround here: https://groups.google.com/forum/#!topic/mfa-users/1ov2CBSGMvQ for creating a link to a different version of openblas might fix the issue (if the same illegal instructions error is what's causing this).

@experimenti
Copy link

experimenti commented Sep 20, 2018

might fix the issue

It does! I needed a minor adjustment to the sym link path - precisely:

(cd montreal-forced-aligner/lib/thirdparty/bin && rm libopenblas.so.0 && ln -s ../../libopenblasp-r0-8dca6697.3.0.dev.so libopenblas.so.0)

@shartoo
Copy link

shartoo commented Sep 20, 2018

@johndouglascm Thank you,it really work.

@mmcauliffe
Copy link
Member

Ok, this should now be fixed in Beta 2 (https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/releases/tag/v1.1.0-beta.2)

@Olabiyisam
Copy link

Hello I am having this Error, any help from anyone FileNotFoundError: [Errno 2] No such file or directory: 'MFA/audio_file/corpus_data/split3/utterance_lengths.0.scp.

@taichuai
Copy link

taichuai commented Sep 25, 2021

It work for me by:
sudo apt-get install libatlas3-base
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/anaconda3/envs/aligner/lib/
lib path should change to yours

@ChristopheZhao
Copy link

might fix the issue

It does! I needed a minor adjustment to the sym link path - precisely:

(cd montreal-forced-aligner/lib/thirdparty/bin && rm libopenblas.so.0 && ln -s ../../libopenblasp-r0-8dca6697.3.0.dev.so libopenblas.so.0)

solved perfectly,thx.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants