MontrealCorpusTools / Montreal-Forced-Aligner

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

[BUG] required sqlite #651

Closed phamkhactu closed 1 year ago

phamkhactu commented 1 year ago

Thanks for excellent repo.

I have followed tutorial for alignment. I used docker. But I run comand:

mfa align Librispeech/ english_us_mfa english_mfa ./aligned_librispeech

I get errors:

 ERROR    There was an error in the run, please see the log.                                                                   
Exception ignored in atexit callback: <bound method ExitHooks.history_save_handler of <montreal_forced_aligner.command_line.mfa.ExitHooks object at 0x7f4c26c28a10>>
Traceback (most recent call last):
  File "/env/lib/python3.11/site-packages/montreal_forced_aligner/command_line/mfa.py", line 97, in history_save_handler
    raise self.exception
  File "/env/bin/mfa", line 8, in <module>
    sys.exit(mfa_cli())
             ^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/rich_click/rich_group.py", line 21, in main
    rv = super().main(*args, standalone_mode=False, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/site-packages/montreal_forced_aligner/command_line/align.py", line 113, in align_corpus_cli
    aligner.align()
  File "/env/lib/python3.11/site-packages/montreal_forced_aligner/alignment/pretrained.py", line 413, in align
    super().align()
  File "/env/lib/python3.11/site-packages/montreal_forced_aligner/alignment/base.py", line 365, in align
    self.collect_alignments()
  File "/env/lib/python3.11/site-packages/montreal_forced_aligner/alignment/base.py", line 923, in collect_alignments
    subprocess.check_call(
  File "/env/lib/python3.11/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/env/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/env/lib/python3.11/subprocess.py", line 1917, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sqlite3'

Thank you very much!

mmcauliffe commented 1 year ago

Can you double check that sqlite3 --help returns a help message?

phamkhactu commented 1 year ago

Can you double check that sqlite3 --help returns a help message?

yeah, The message is: bash: sqlite3: command not found

mmcauliffe commented 1 year ago

Can you try running conda install sqlite? Not sure why it didn't get picked up with the new version, a fresh install gets it properly for me...

mmcauliffe commented 1 year ago

Oh wait this is on docker, I think know what to fix.

mmcauliffe commented 1 year ago

Ok the latest dockerfile should have this fixed.