RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
Macbook Pro M2 Pro issues with webUI Errors
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
Okay so i know this might be a long shot but when trying to launch the webui from [sh run.sh] i get this error
Traceback (most recent call last):
File "infer-web.py", line 26, in <module>
from fairseq import checkpoint_utils
File "/opt/homebrew/lib/python3.8/site-packages/fairseq/__init__.py", line 40, in <module>
import fairseq.scoring # noqa
File "/opt/homebrew/lib/python3.8/site-packages/fairseq/scoring/__init__.py", line 55, in <module>
importlib.import_module("fairseq.scoring." + module)
File "/opt/homebrew/Cellar/python@3.8/3.8.18_2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/homebrew/lib/python3.8/site-packages/fairseq/scoring/bleu.py", line 14, in <module>
from fairseq.scoring.tokenizer import EvaluationTokenizer
File "/opt/homebrew/lib/python3.8/site-packages/fairseq/scoring/tokenizer.py", line 8, in <module>
import sacrebleu as sb
File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/__init__.py", line 21, in <module>
from .utils import smart_open, SACREBLEU_DIR, download_test_set # noqa: F401
File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/utils.py", line 597, in <module>
from .dataset import DATASETS, SUBSETS, DOMAINS, COUNTRIES
File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/dataset/__init__.py", line 73, in <module>
from .wmt_xml import WMTXMLDataset
File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/dataset/wmt_xml.py", line 3, in <module>
import lxml.etree as ET
ImportError: dlopen(/opt/homebrew/lib/python3.8/site-packages/lxml/etree.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_exsltDateXpathCtxtRegister'
when using my Intel macbook pro it throws this error when trying to use inference.
UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
and when the ui works [mangio RVC] for instance
i get this error,
NotImplementedError: The operator 'aten::upsample_linear1d.out' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS.
Mind you i can get the actual UI to work on my intel macbook but i cant get it to launch on my m2 pro macbook at all.
Any ideas on how to fix these issues???
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with run.sh and infer-web.py, then reproduce the separate M2 WebUI import failure involving fairseq, sacrebleu, and lxml. Also reproduce the Intel inference warnings and the MPS upsample_linear1d error, checking the reported PYTORCH_ENABLE_MPS_FALLBACK workaround. Done means the WebUI launches on the M2 and inference behavior is documented or corrected on both Macs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- desktop-dev, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100