Open kulogix opened 1 month ago
Update: On Mac (and Windows), the file system is case insensitive by default. python-mecab-ko tries to install to mecab, and mecab-python3 to MeCab. If you're not on a case-sensitive file system, one install will overwrite/merge with the other.
On Mac, create a new case-sensitive volume and setup your virtual environment there: Diskutils: + Volume, Name: Playground, Format: APFS (Case-sensitive) Create a symbolic link in your home folder: ln -s /Volumes/Playground ~/playground
Once the python project are setup on a case-sensitive file system, then everything works (for European, Japanese, Korean, and Chinese). I also had mecab-ko installed: brew install mecab-ko
It would be nice if these tips (case-sensitive volume, how to create on Mac, and need to install mecab vs mecab-ko) was added to the README / docs -- for those that don't want to rely on the Docker.
same issue. is there any replacement for MeCab?
me also...
so i tried
docker build,
edit requirement.txt botocore==1.34.88 cached_path==1.6.2
and everything resolved
Trying to run OpenVoice/demo_part3.ipynb on Apple Silicon. Even with workarounds (listed below), it attempts to auto-install python-mecab-ko which causes conflicts with mecab-python3.
Appears to happen regardless of whether mecab or mecab-ko is installed.
Two other similar issues were closed without actual resolution. https://github.com/myshell-ai/MeloTTS/issues/119 https://github.com/myshell-ai/MeloTTS/issues/113 Why keep closing them without addressing the issues?
Apple Silicon, python 3.10.14 virtual environment. brew install mecab Installed MeloTTS, first removing extra "mecab-python3==1.0.5", and removing version from 2nd one. python -m unidic download
Using: python_mecab_ko-1.3.5-cp310-cp310-macosx_11_0_arm64.whl mecab_python3-1.0.9-cp310-cp310-macosx_11_0_arm64.whl
%set_env PYTORCH_ENABLE_MPS_FALLBACK=1 edited openvoice/se_extractor.py:22: model = WhisperModel(model_size, device="cpu", compute_type="float32")
device = "cuda:0" if torch.cuda.is_available() else "cpu"
device = "mps"
Running for a 2nd time after this (in a new session) results in different error. Happens anytime python-mecab-ko is installed after mecab-python3. New error:
To revert to the first error:
Tried pip install mecab, got the following:
Tried installing mecab-ko instead of mecab:
Get the similar as the first error (attempts auto-install of python-mecab-ko, then complains mecab.pos doesn't exist):
As before, running a new session (no changes to installs -- other than the previously auto-installed python-mecab-ko), get the following (different) error: