CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

如何决解raise ErrorDuringImport(path, sys.exc_info()) pydoc.ErrorDuringImport: problem in cosyvoice.flow.flow_matching - ModuleNotFoundError: No module named 'matcha.models'; 'matcha' is not a package

Open kustcl opened this issue 1 year ago • 6 comments

File "D:\anaconda\Lib\site-packages\ruamel\yaml\constructor.py", line 429, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\ruamel\yaml\constructor.py", line 244, in construct_mapping value = self.construct_object(value_node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\ruamel\yaml\constructor.py", line 147, in construct_object data = self.construct_non_recursive_object(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\ruamel\yaml\constructor.py", line 183, in construct_non_recursive_object data = constructor(self, tag_suffix, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\site-packages\hyperpyyaml\core.py", line 470, in construct_object callable = pydoc.locate(callable_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\pydoc.py", line 1719, in locate nextmodule = safeimport('.'.join(parts[:n+1]), forceload) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\Lib\pydoc.py", line 457, in safeimport raise ErrorDuringImport(path, sys.exc_info()) pydoc.ErrorDuringImport: problem in cosyvoice.flow.flow_matching - ModuleNotFoundError: No module named 'matcha.models'; 'matcha' is not a package

kustcl avatar Aug 04 '24 02:08 kustcl

you see issues,there are manyanswers helping you

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年08月05日 22:28 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [FunAudioLLM/CosyVoice] 如何决解raise ErrorDuringImport(path, sys.exc_info()) pydoc.ErrorDuringImport: problem in cosyvoice.flow.flow_matching - ModuleNotFoundError: No module named 'matcha.models'; 'matcha' is not a package (Issue #244) |

我也遇到了同样的问题,你解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kustcl avatar Aug 06 '24 03:08 kustcl

我也遇到这个问题,很奇怪,不知道怎么回事

Miao-WangHao avatar Aug 08 '24 02:08 Miao-WangHao

下载这个仓库[https://github.com/shivammehta25/Matcha-TTS],把里面的model文件夹复制到cosyvoice项目的根目录

502dxceit avatar Aug 16 '24 17:08 502dxceit

下载这个仓库[https://github.com/shivammehta25/Matcha-TTS],把里面的model文件夹复制到cosyvoice项目的根目录

复制了还是不行,怎么回事,我也重新source了一下

jellyfishovo avatar Oct 24 '24 06:10 jellyfishovo

pip install Matcha-TTS

magicyuan876 avatar Dec 18 '24 00:12 magicyuan876

pip install Matcha-TTS

用这个解决了

ops120 avatar May 14 '25 11:05 ops120