Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

can't run "run.sh" on mac

Open Matin-Na opened this issue 1 year ago • 1 comments

i have installed python 3.9.16 and i am using the (2.2.231006 ) version for AMD/Intel GPU. when I use terminal to run the run.sh, it started to tell me that certain modules are not installed so I started installing those modules one by one using pip and now it's telling me that "ModuleNotFoundError: No module named 'pyworld'" and when I try installing it usingpip install pyworld it gives me this error:

Building wheel for pyworld (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pyworld (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel running build running build_py creating build/lib.macosx-15.0-arm64-cpython-39/pyworld copying pyworld/init.py -> build/lib.macosx-15.0-arm64-cpython-39/pyworld running build_ext /private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-build-env-3yxosdog/overlay/lib/python3.9/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-install-moyd4f86/pyworld_ccc5fc705bb1465492eea272ff641a97/pyworld/pyworld.pyx tree = Parsing.p_module(s, pxd, full_module_name) Compiling pyworld/pyworld.pyx because it changed. [1/1] Cythonizing pyworld/pyworld.pyx building 'pyworld.pyworld' extension creating build/temp.macosx-15.0-arm64-cpython-39/lib/World/src creating build/temp.macosx-15.0-arm64-cpython-39/pyworld clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -Ilib/World/src -I/private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-build-env-3yxosdog/overlay/lib/python3.9/site-packages/numpy/_core/include -I/Users/matinnasiri/.pyenv/versions/3.9.16/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.macosx-15.0-arm64-cpython-39/lib/World/src/cheaptrick.o clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -Ilib/World/src -I/private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-build-env-3yxosdog/overlay/lib/python3.9/site-packages/numpy/_core/include -I/Users/matinnasiri/.pyenv/versions/3.9.16/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.macosx-15.0-arm64-cpython-39/lib/World/src/codec.o clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -Ilib/World/src -I/private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-build-env-3yxosdog/overlay/lib/python3.9/site-packages/numpy/_core/include -I/Users/matinnasiri/.pyenv/versions/3.9.16/include/python3.9 -c lib/World/src/common.cpp -o build/temp.macosx-15.0-arm64-cpython-39/lib/World/src/common.o clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -Ilib/World/src -I/private/var/folders/7y/byrchbc95fx5tfpx9vgj843r0000gn/T/pip-build-env-3yxosdog/overlay/lib/python3.9/site-packages/numpy/_core/include -I/Users/matinnasiri/.pyenv/versions/3.9.16/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.macosx-15.0-arm64-cpython-39/lib/World/src/d4c.o lib/World/src/d4c.cpp:11:10: fatal error: 'algorithm' file not found 11 | #include // for std::sort() | ^~~~~~~~~~~ 1 error generated. 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 pyworld Failed to build pyworld ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyworld)

what should I do?

Matin-Na avatar Dec 07 '24 18:12 Matin-Na

I got it working, I had to downgrade pip to v24.0 and install build essential tools. I'm using conda, python v.3.8.20, pip v24.0

sudo apt update

conda install pip=24.0 sudo apt install build-essential sudo apt ffmpeg // I also did this but not sure this is apart of the solution

userhonda avatar Apr 22 '25 17:04 userhonda