-
Notifications
You must be signed in to change notification settings - Fork 444
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
mecab-python3 and python-mecab-ko conflict #121
Comments
Update: On Mac (and Windows), the file system is case insensitive by default. On Mac, create a new case-sensitive volume and setup your virtual environment there: 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: 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
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.
#119
#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:
pip uninstall mecab-python3 python-mecab-ko mecab pip install mecab-python3 ## without manually re-installing python-mecab-ko
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:
The text was updated successfully, but these errors were encountered: