-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] mecab-python3 throws error "symbol not found in flat namespace '__ZN5MeCab11createModelEPKc'" #2210
Comments
I'm closing this issue as I managed to solve it with the help of polm, the mecab-python3 maintainer. TL;DR
It was not enough to install mecab by homebrew as suggested before, you need to recompile it from source, and make sure that the homebrew for the arm64 is used, hence the path. Also, you need to compile from source all the libraries, it was not enough to recompile only the mecab-python3 library. |
@agilebean which other libraries are you referring to that need to be recompiled, the dependencies of mecab-python3 or just all libraries in my virtual env? |
These steps didn't work for me, I still got the symbol not found error. Since I didn't need Japanese I just removed the Japanese phonemizer imports and it worked. i made a fork in case it helps anyone. coqui-without-japanese |
This worked, thanks, though I had to tweak these commands slightly. "install" was left off the brew command. I also used a different pip command that includes brew install --build-from-source mecab
ARCHFLAGS='-arch arm64' pip install --no-binary :all: --compile --use-pep517 --no-cache-dir --force mecab-python3 |
Describe the bug
On an Apple Silicon M1 with MacOS Ventura, I could replicate the following for
and several models and vocoders.
After the installation process (see To Reproduce section), the following commands work:
However, the following commands do not work:
They throw the same error from the mecab library:
Reinstalling the mecab-python3 library did not make a difference, even when installed from source by:
To Reproduce
Installed TTS repo with mamba:
Expected behavior
No response
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: