Closed jeffmielke closed 4 months ago
Should be fixed by https://github.com/conda-forge/montreal-forced-aligner-feedstock/pull/84, if you can run conda update -c conda-forge montreal-forced-aligner
it should pick up the update to kalpy as well.
Thanks. This worked for me.
On Tue, Jul 16, 2024 at 2:53 PM Michael McAuliffe @.***> wrote:
Should be fixed by conda-forge/montreal-forced-aligner-feedstock#84 https://github.com/conda-forge/montreal-forced-aligner-feedstock/pull/84, if you can run conda update -c conda-forge montreal-forced-aligner it should pick up the update to kalpy as well.
— Reply to this email directly, view it on GitHub https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/issues/828#issuecomment-2231609967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3Q3BPSFL5BCSQ2FU3WXWTZMVTZVAVCNFSM6AAAAABK66S4L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGYYDSOJWG4 . You are receiving this because you authored the thread.Message ID: @.*** com>
I am having the same error still although I am using .txt files for my transcription files. I only seem to have this version on 3.2 but not on 2.2.17.
` DEBUG Beginning run for audio
DEBUG Using "global" profile
DEBUG Using multiprocessing with 3
DEBUG Set up logger for MFA version: 3.2.0
DEBUG Cleaned previous run
DEBUG There were some differences in the current run compared to the last one. This may cause
issues, run with --clean, if you hit an error.
DEBUG Loaded dictionary in 5.926 seconds
INFO Setting up corpus information...
DEBUG Could not load from temp
INFO Loading corpus from source files...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 304/100 [ 0:00:00 < 0:00:00 , ? it/s ] DEBUG Processing queue: 0.19272704300000143
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400/100 [ 0:00:00 < 0:00:00 , 90 it/s ]
DEBUG Parsed corpus directory with 3 jobs in 0.23261309600000146 seconds
INFO Found 1 speaker across 400 files, average number of utterances per speaker: 400.0
DEBUG Loaded corpus in 1.190 seconds
INFO Initializing multiprocessing jobs...
DEBUG Initialized jobs in 0.016 seconds
INFO Normalizing text...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400/400 [ 0:00:01 < 0:00:00 , ? it/s ]
DEBUG Wrote lexicon information in 4.236 seconds
INFO Generating MFCCs...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400/400 [ 0:00:05 < 0:00:00 , ? it/s ]
DEBUG Generating MFCCs took 5.473 seconds
INFO Calculating CMVN...
INFO Generating final features...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400/400 [ 0:00:01 < 0:00:00 , ? it/s ]
DEBUG Generating final features took 1.173 seconds
INFO Creating corpus split...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 400/400 [ 0:00:01 < 0:00:00 , ? it/s ]
DEBUG Generated features in 7.815 seconds
DEBUG Setting up corpus took 24.881 seconds
DEBUG
DEBUG ====ACOUSTIC MODEL INFO====
DEBUG Acoustic model root directory: /home/albert/Documents/MFA/extracted_models/acoustic
DEBUG Acoustic model dirname:
/home/albert/Documents/MFA/extracted_models/acoustic/english_mfa_acoustic
DEBUG Acoustic model meta path:
/home/albert/Documents/MFA/extracted_models/acoustic/english_mfa_acoustic/meta.json
DEBUG Acoustic model meta information:
DEBUG architecture: gmm-hmm
dictionaries:
bracketed_word: '[bracketed]'
clitic_marker: ''''
default: default
laughter_word: '[laughter]'
names:
"\u0294"
phone_mapping:
Job 1 encountered an error: Traceback (most recent call last):
File "/home/albert/miniconda3/envs/mfa_3/lib/python3.8/site-packages/montreal_forced_aligner/abc.py", line 104, in run self._run()
File "/home/albert/miniconda3/envs/mfa_3/lib/python3.8/site-packages/montreal_forced_aligner/alignment/multiprocessing.py", line 457, in _run compiler = TrainingGraphCompiler(
TypeError: init() missing 1 required positional argument: 'words_symbols'`
Hi there, I was facing the same error here, but I could fix it after checking the commit cited earlier in this thread.
In my case the kalpy lib was on version 0.6.3, so I run:
conda update -c conda-forge kalpy
And so it was upgraded to 0.6.5... after that, all commands are working again.
Hi there, I was facing the same error here, but I could fix it after checking the commit cited earlier in this thread. In my case the kalpy lib was on version 0.6.3, so I run:
conda update -c conda-forge kalpy
And so it was upgraded to 0.6.5... after that, all commands are working again.
Thanks! That fixed it
Debugging checklist
[x] Have you read the troubleshooting page (https://montreal-forced-aligner.readthedocs.io/en/latest/user_guide/troubleshooting.html) and searched the documentation to ensure that your issue is not addressed there? [x] Have you updated to latest MFA version (check https://montreal-forced-aligner.readthedocs.io/en/latest/changelog/changelog_3.0.html)? What is the output of
mfa version
? [x] Have you tried rerunning the command with the--clean
flag?Describe the issue A clear and concise description of what the bug is.
I updated to 3.1.3 to see how issue #824 was addressed and now I get an error message when trying to align the same test dataset that aligned successfully under 3.1.1: TypeError: init() missing 1 required positional argument: 'words_symbols'
For Reproducing your issue Please fill out the following:
Log file Please attach the log file for the run that encountered an error (by default these will be stored in
~/Documents/MFA
).Desktop (please complete the following information):
Additional context Add any other context about the problem here.
Here is the whole error message:
INFO Compiling training graphs...
sys.exit(mfa_cli())
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/rich_click/rich_command.py", line 367, in call
return super().call(*args, kwargs)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(args, kwargs)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/rich_click/rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(args, kwargs)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/command_line/align.py", line 121, in align_corpus_cli
aligner.align()
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/alignment/pretrained.py", line 363, in align
super().align()
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/alignment/base.py", line 366, in align
self.compile_train_graphs()
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/alignment/mixins.py", line 241, in compile_traingraphs
for in run_kaldi_function(CompileTrainGraphsFunction, arguments):
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/utils.py", line 732, in run_kaldi_function
raise v
montreal_forced_aligner.exceptions.MultiprocessingError: MultiprocessingError:
Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler Exception ignored in: <function TrainingGraphCompiler.del at 0x7f22a185a160> Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/kalpy/decoder/training_graphs.py", line 107, in del del self._compiler AttributeError: _compiler ERROR There was an error in the run, please see the log.
Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/home/jimielke/.conda/envs/aligner/bin/mfa", line 10, in
Job 8 encountered an error: Traceback (most recent call last):
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/abc.py", line 104, in run self._run()
File "/home/jimielke/.conda/envs/aligner/lib/python3.9/site-packages/montreal_forced_aligner/alignment/multiprocessing.py", line 445, in _run compiler = TrainingGraphCompiler(
TypeError: init() missing 1 required positional argument: 'words_symbols'