RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

m1 Mac can't pass python infer-web.py

Open
#804 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

following up
Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

how can I fix this ?

python infer-web.py
Traceback (most recent call last):
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 26, in
from fairseq import checkpoint_utils
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/fairseq/init.py", line 40, in
import fairseq.scoring # noqa
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/fairseq/scoring/init.py", line 55, in
importlib.import_module("fairseq.scoring." + module)
File "/Users/asduskun/miniconda3/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/fairseq/scoring/bleu.py", line 14, in
from fairseq.scoring.tokenizer import EvaluationTokenizer
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/fairseq/scoring/tokenizer.py", line 8, in
import sacrebleu as sb
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/sacrebleu/init.py", line 21, in
from .utils import smart_open, SACREBLEU_DIR, download_test_set # noqa: F401
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/sacrebleu/utils.py", line 597, in
from .dataset import DATASETS, SUBSETS, DOMAINS, COUNTRIES
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/sacrebleu/dataset/init.py", line 73, in
from .wmt_xml import WMTXMLDataset
File "/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/sacrebleu/dataset/wmt_xml.py", line 3, in
import lxml.etree as ET
ImportError: dlopen(/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so, 0x0002): tried: '/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (no such file), '/Users/asduskun/Retrieval-based-Voice-Conversion-WebUI/rvcgui/lib/python3.10/site-packages/lxml/etree.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running python infer-web.py and inspect the import chain from infer-web.py through fairseq, sacrebleu, and lxml. The reported failure is an x86_64 lxml binary being loaded by an arm64 Python process; done means the dependency imports successfully and infer-web.py starts on the M1 Mac.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.