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

Easily train a good VC model with voice data <= 10 mins!
MIT License
20k stars 3.1k forks source link

MacOS M1, use sh ./run.sh error(Mac m1 芯片运行报错) #1977

Closed Karos44 closed 1 month ago

Karos44 commented 1 month ago

The terminal give this back:

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.19/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
  File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/utils.py", line 595, in <module>
    from .dataset import DATASETS, SUBSETS, DOMAINS, COUNTRIES  # noqa: E402
  File "/opt/homebrew/lib/python3.8/site-packages/sacrebleu/dataset/__init__.py", line 28, 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'

what should i do? There's the same error in https://huggingface.co/lj1995/VoiceConversionWebUI/discussions/8 and nobody gave a response...(my english is poor sorry!)

ic1149 commented 1 month ago

嘗試安裝 lxml 4.9.4 pip 例子: pip install lxml=4.9.4

Karos44 commented 1 month ago

@ic1149 我隻能安裝靜態版的lxml,即--no-binary :all: lxml,而安裝4.9.4會出現如下報錯(I can only install the static version of lxml, that is, --no-binary :all: lxml. When installing 4.9.4, the following error will appear):

 Building wheel for lxml (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [175 lines of output]
      Building lxml version 4.9.4.
      /private/var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T/pip-install-xgnnlqar/lxml_058ac3d303884762a14d652d1fb69351/setup.py:67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        import pkg_resources
      Building without Cython.
      Building against libxml2 2.12.6 and libxslt 1.1.39
      Building against libxml2/libxslt in one of the following directories:
        /opt/homebrew/Cellar/libxml2/2.12.6/lib
        /opt/homebrew/Cellar/libxslt/1.1.39/lib
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-14.2-arm64-cpython-39
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/_elementpath.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/sax.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/pyclasslookup.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/__init__.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/builder.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/doctestcompare.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/usedoctest.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/cssselect.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/ElementInclude.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/__init__.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/soupparser.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/defs.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/_setmixin.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/clean.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/_diffcommand.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/html5parser.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/__init__.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/formfill.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/builder.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/ElementSoup.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/_html5builder.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/usedoctest.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      copying src/lxml/html/diff.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/html
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron
      copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron
      copying src/lxml/etree.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/etree_api.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/lxml.etree.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/lxml.etree_api.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/objectify.pyx -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/etree.pyx -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/public-api.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xmlid.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/cleanup.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xslt.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xpath.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/debug.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/serializer.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/classlookup.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/saxparser.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/objectpath.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/relaxng.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xinclude.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/iterparse.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/parser.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/dtd.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/apihelpers.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xmlerror.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/readonlytree.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/extensions.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xmlschema.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/schematron.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/docloader.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/nsclasses.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/parsertarget.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/xsltext.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/proxy.pxi -> build/lib.macosx-14.2-arm64-cpython-39/lxml
      copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/c14n.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/__init__.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/schematron.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/tree.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/uri.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/xpath.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/xslt.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/config.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/lxml-version.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      copying src/lxml/includes/etree_defs.h -> build/lib.macosx-14.2-arm64-cpython-39/lxml/includes
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/rng
      copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/rng
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl
      copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl
      copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl
      creating build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-14.2-arm64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      running build_ext
      building 'lxml.etree' extension
      creating build/temp.macosx-14.2-arm64-cpython-39
      creating build/temp.macosx-14.2-arm64-cpython-39/src
      creating build/temp.macosx-14.2-arm64-cpython-39/src/lxml
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -DCYTHON_CLINE_IN_TRACEBACK=0 -I/opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2 -I/opt/homebrew/Cellar/libxslt/1.1.39/include -Isrc -Isrc/lxml/includes -I/Users/eden/.pyenv/versions/3.9.2/include/python3.9 -c src/lxml/etree.c -o build/temp.macosx-14.2-arm64-cpython-39/src/lxml/etree.o -w -flat_namespace
      src/lxml/etree.c:113221:38: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types]
        __pyx_v_self->_c_ctxt->sax->serror = __pyx_f_4lxml_5etree__receiveParserError;
                                           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/lxml/etree.c:117709:25: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types]
          __pyx_v_sax->serror = __pyx_f_4lxml_5etree__receiveParserError;
                              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/lxml/etree.c:181971:28: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types]
        __pyx_v_xpathCtxt->error = __pyx_f_4lxml_5etree__receiveXPathError;
                                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/lxml/etree.c:219245:60: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
        xmlRelaxNGSetParserStructuredErrors(__pyx_v_parser_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log));
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/relaxng.h:156:30: note: passing argument to parameter 'serror' here
                                               xmlStructuredErrorFunc serror,
                                                                      ^
      src/lxml/etree.c:219663:60: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
          xmlRelaxNGSetValidStructuredErrors(__pyx_v_valid_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log));
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/relaxng.h:185:31: note: passing argument to parameter 'serror' here
                                                xmlStructuredErrorFunc serror, void *ctx);
                                                                       ^
      src/lxml/etree.c:220552:59: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
        xmlSchemaSetParserStructuredErrors(__pyx_v_parser_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log));
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/xmlschemas.h:156:30: note: passing argument to parameter 'serror' here
                                               xmlStructuredErrorFunc serror,
                                                                      ^
      src/lxml/etree.c:221095:59: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
          xmlSchemaSetValidStructuredErrors(__pyx_v_valid_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log));
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/xmlschemas.h:185:30: note: passing argument to parameter 'serror' here
                                               xmlStructuredErrorFunc serror,
                                                                      ^
      src/lxml/etree.c:221860:66: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
          xmlSchemaSetValidStructuredErrors(__pyx_v_self->_valid_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_error_log));
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/xmlschemas.h:185:30: note: passing argument to parameter 'serror' here
                                               xmlStructuredErrorFunc serror,
                                                                      ^
      src/lxml/etree.c:223037:63: error: incompatible function pointer types passing 'void (void *, xmlError *)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
          xmlSchematronSetValidStructuredErrors(__pyx_v_valid_ctxt, __pyx_f_4lxml_5etree__receiveError, ((void *)__pyx_v_self->__pyx_base._error_log));
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/schematron.h:106:31: note: passing argument to parameter 'serror' here
                                                xmlStructuredErrorFunc serror,
                                                                       ^
      9 errors generated.
      Compile failed: command '/usr/bin/clang' failed with exit code 1
      creating var
      creating var/folders
      creating var/folders/09
      creating var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn
      creating var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T
      cc -I/opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2 -I/opt/homebrew/Cellar/libxslt/1.1.39/include -I/usr/include/libxml2 -c /var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T/xmlXPathInit0phdx8ey.c -o var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T/xmlXPathInit0phdx8ey.o
      /var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T/xmlXPathInit0phdx8ey.c:3:5: warning: 'xmlXPathInit' is deprecated [-Wdeprecated-declarations]
          xmlXPathInit();
          ^
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/xpath.h:562:1: note: 'xmlXPathInit' has been explicitly marked deprecated here
      XML_DEPRECATED
      ^
      /opt/homebrew/Cellar/libxml2/2.12.6/include/libxml2/libxml/xmlversion.h:447:43: note: expanded from macro 'XML_DEPRECATED'
      #    define XML_DEPRECATED __attribute__((deprecated))
                                                ^
      1 warning generated.
      cc var/folders/09/h7bd7dl545qbt6y2ptvhfrl80000gn/T/xmlXPathInit0phdx8ey.o -L/opt/homebrew/Cellar/libxml2/2.12.6/lib -L/opt/homebrew/Cellar/libxslt/1.1.39/lib -lxml2 -o a.out
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml
ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects
oyouchano commented 1 month ago

@Karos44 Try to instal and execute program use pip or python instead of .run.sh ex:

pip install -r requirements-py311.txt
python3 infer-web.py
Karos44 commented 1 month ago

It works! Thank you! 👍

wastu01 commented 1 month ago

我有成功啟動訓練用介面,想請教 mac 如何開啟 go-realtime-gui.bat

ic1149 commented 1 month ago

.bat 是 windows 用的 在 Mac/Linux 請使用 run.sh

wastu01 commented 1 month ago

你好,我有成功執行 run.sh 有跑出訓練用的介面,但我想要使用的功能是 RVC 實時變聲,想請教如何開啟下列所述的介面? https://youtu.be/fLMcu4n-Xl0?list=PLK7sA3zrSa4vOyDXdg05yhqDg-qd_LRPn&t=240

wastu01 commented 1 month ago

我有查看 go-realtime-gui.bat 似乎是執行 gui_v1.py

所以我手動啟動虛擬環境 source .venv/bin/activate 執行 python gui_v1.py --nocheck

報錯訊息:

Activate venv...
Traceback (most recent call last):
  File "gui_v1.py", line 85, in <module>
    import FreeSimpleGUI as sg
ModuleNotFoundError: No module named 'FreeSimpleGUI'
Press any key to continue...
wastu01 commented 1 month ago

所以我嘗試另外安裝這兩個套件 ➜ ~ pip install sounddevice ➜ ~ pip install FreeSimpleGUI

截圖 2024-05-01 凌晨12 26 46

但只有顯示介面功能無法正常運作

Activate venv...
2024-05-01 00:28:44 | INFO | faiss.loader | Loading faiss.
2024-05-01 00:28:44 | INFO | faiss.loader | Successfully loaded faiss.
2024-05-01 00:28:44 | INFO | configs.config | No supported Nvidia GPU found
2024-05-01 00:28:44 | INFO | configs.config | overwrite v1/32k.json
2024-05-01 00:28:44 | INFO | configs.config | overwrite v1/40k.json
2024-05-01 00:28:44 | INFO | configs.config | overwrite v1/48k.json
2024-05-01 00:28:44 | INFO | configs.config | overwrite v2/48k.json
2024-05-01 00:28:44 | INFO | configs.config | overwrite v2/32k.json
2024-05-01 00:28:44 | INFO | configs.config | overwrite preprocess_per to 3
2024-05-01 00:28:44 | INFO | configs.config | Use mps instead
2024-05-01 00:28:44 | INFO | configs.config | Half-precision floating-point: False, device: mps
2024-05-01 00:28:45.185 Python[22515:1308738] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Exception in Tkinter callback
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.8/3.8.18_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/Users/larry/Github/RVC/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.8/site-packages/FreeSimpleGUI/FreeSimpleGUI.py", line 4902, in ButtonCallBack
    is_all = [(x, y) for (x, y) in filetypes if all(ch in '* .' for ch in y)]
  File "/Users/larry/Github/RVC/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.8/site-packages/FreeSimpleGUI/FreeSimpleGUI.py", line 4902, in <listcomp>
    is_all = [(x, y) for (x, y) in filetypes if all(ch in '* .' for ch in y)]
ValueError: too many values to unpack (expected 2)
Press any key to continue...

➜  Retrieval-based-Voice-Conversion-WebUI git:(main) ✗ 
(.venv) ➜  Retrieval-based-Voice-Conversion-WebUI git:(main) ✗ pip list                 
Package                   Version
------------------------- -----------
absl-py                   2.1.0
aiofiles                  23.2.1
altair                    5.3.0
annotated-types           0.6.0
antlr4-python3-runtime    4.8
anyio                     4.3.0
attrs                     23.2.0
audioread                 3.0.1
av                        12.0.0
bitarray                  2.9.2
cachetools                5.3.3
certifi                   2024.2.2
cffi                      1.16.0
charset-normalizer        3.3.2
click                     8.1.7
colorama                  0.4.6
coloredlogs               15.0.1
contourpy                 1.1.1
cycler                    0.12.1
Cython                    3.0.10
decorator                 5.1.1
einops                    0.8.0
exceptiongroup            1.2.1
fairseq                   0.12.2
faiss-cpu                 1.8.0
fastapi                   0.110.3
ffmpeg-python             0.2.0
ffmpy                     0.3.1
filelock                  3.14.0
flatbuffers               24.3.25
fonttools                 4.51.0
FreeSimpleGUI             5.0.0
fsspec                    2024.3.1
future                    1.0.0
google-auth               2.29.0
google-auth-oauthlib      1.0.0
gradio                    4.23.0
gradio_client             0.14.0
grpcio                    1.62.2
h11                       0.14.0
httpcore                  1.0.5
httpx                     0.27.0
huggingface-hub           0.22.2
humanfriendly             10.0
hydra-core                1.0.7
idna                      3.7
importlib_metadata        7.1.0
importlib_resources       6.4.0
Jinja2                    3.1.3
joblib                    1.4.0
json5                     0.9.25
jsonschema                4.21.1
jsonschema-specifications 2023.12.1
kiwisolver                1.4.5
librosa                   0.9.1
llvmlite                  0.41.1
local-attention           1.9.1
lxml                      5.2.1
Markdown                  3.6
markdown-it-py            3.0.0
MarkupSafe                2.1.5
matplotlib                3.7.5
matplotlib-inline         0.1.7
mdurl                     0.1.2
mpmath                    1.3.0
networkx                  3.1
numba                     0.58.1
numpy                     1.23.5
oauthlib                  3.2.2
omegaconf                 2.0.6
onnxruntime               1.17.3
orjson                    3.10.1
packaging                 24.0
pandas                    2.0.3
pillow                    10.3.0
pip                       23.0.1
pkgutil_resolve_name      1.3.10
platformdirs              4.2.1
pooch                     1.8.1
portalocker               2.8.2
praat-parselmouth         0.4.3
protobuf                  5.26.1
pyasn1                    0.6.0
pyasn1_modules            0.4.0
pycparser                 2.22
pydantic                  2.7.1
pydantic_core             2.18.2
pydub                     0.25.1
Pygments                  2.17.2
pyparsing                 3.1.2
python-dateutil           2.9.0.post0
python-dotenv             1.0.1
python-multipart          0.0.9
pytz                      2024.1
pyworld                   0.3.2
PyYAML                    6.0.1
referencing               0.35.0
regex                     2024.4.28
requests                  2.31.0
requests-oauthlib         2.0.0
resampy                   0.4.3
rich                      13.7.1
rpds-py                   0.18.0
rsa                       4.9
ruff                      0.4.2
sacrebleu                 2.4.2
scikit-learn              1.3.2
scipy                     1.10.1
semantic-version          2.10.0
setuptools                56.0.0
shellingham               1.5.4
six                       1.16.0
sniffio                   1.3.1
sounddevice               0.4.6
soundfile                 0.12.1
starlette                 0.37.2
sympy                     1.12
tabulate                  0.9.0
tensorboard               2.14.0
tensorboard-data-server   0.7.2
tensorboardX              2.6.2.2
threadpoolctl             3.5.0
tomlkit                   0.12.0
toolz                     0.12.1
torch                     2.3.0
torchaudio                2.3.0
torchcrepe                0.0.20
torchfcpe                 0.0.4
tornado                   6.4
tqdm                      4.66.2
traitlets                 5.14.3
typer                     0.12.3
typing_extensions         4.11.0
tzdata                    2024.1
uc-micro-py               1.0.3
urllib3                   2.2.1
uvicorn                   0.29.0
websockets                11.0.3
Werkzeug                  3.0.2
wheel                     0.43.0
zipp                      3.18.1