MontrealCorpusTools / Montreal-Forced-Aligner

Command line utility for forced alignment using Kaldi
https://montrealcorpustools.github.io/Montreal-Forced-Aligner/
MIT License
1.26k stars 242 forks source link

TypeError: 'NoneType' object is not subscriptable Failed to execute script align #50

Open zhangyaqiang opened 6 years ago

zhangyaqiang commented 6 years ago

I have used mfa_align for a week , it has no problem , but yesterday it suddenly couldn't work.This is error message:

Traceback (most recent call last):
  File "aligner/command_line/align.py", line 186, in <module>
  File "aligner/command_line/align.py", line 146, in validate_args
  File "aligner/command_line/align.py", line 69, in align_corpus
TypeError: 'NoneType' object is not subscriptable
Failed to execute script align

I didn't change anything, what's the problem?

mmcauliffe commented 6 years ago

That's pretty puzzling. One thing you can try is to delete the temporary directory for the directory you're aligning. It looks like it's having an issue loading information from previous runs.

zhangyaqiang commented 6 years ago

It works after I delete the temporary directory, thanks.

alpoktem commented 6 years ago

Hi, I am having the same problem. It gives the error when the directory with the audiofiles is in specific locations. It works under the montreal-forced-aligner directory for example. It used to work without problems before. What should I delete?

zhangyaqiang commented 6 years ago

Delete /Documents/MFA is fine.

alpoktem commented 6 years ago

OK! Got it thanks!

lorenlugosch commented 5 years ago

I ran into this issue too. Deleting the temporary directory worked for me as well.

OscarVanL commented 3 years ago

Deleting ~/Documents/MFA worked for me too

hwhw97 commented 2 months ago

Deleting ~/Documents/MFA worked for me too, thanks!