readbeyond / aeneas

aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment)
http://www.readbeyond.it/aeneas/
GNU Affero General Public License v3.0
2.53k stars 233 forks source link

mac m1 silicon always fail #285

Open nevertoday opened 2 years ago

nevertoday commented 2 years ago

I try pip install and brew install, but it alway fails . I install from git same error will appear like below :


error: Command "clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_func.o build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_py.o -lespeak -o build/lib.macosx-12-arm64-cpython-39/aeneas/cew/cew.cpython-39-darwin.so" failed with exit status 1


creating build/temp.macosx-12-arm64-cpython-39/aeneas/cew INFO: compile options: '-I['/opt/homebrew/lib/python3.9/site-packages/numpy/core/include'] -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c' INFO: clang: aeneas/cew/cew_func.c INFO: clang: aeneas/cew/cew_py.c INFO: clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_func.o build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_py.o -lespeak -o build/lib.macosx-12-arm64-cpython-39/aeneas/cew/cew.cpython-39-darwin.so ld: library not found for -lespeak clang: error: linker command failed with exit code 1 (use -v to see invocation) error: Command "clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_func.o build/temp.macosx-12-arm64-cpython-39/aeneas/cew/cew_py.o -lespeak -o build/lib.macosx-12-arm64-cpython-39/aeneas/cew/cew.cpython-39-darwin.so" failed with exit status 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> aeneas

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.


how to fixed . hope for u help . thks

Jack-Yu-815 commented 2 years ago

I'm also having the same issue while installing aeneas with pip/brew. I use M2 Apple Silicon.


Follow up: I followed this install file to download the All-in-one Installer (file name: aeneas-mac-setup-1.7.3.0_2.dmg) for macOS. After installing using the GUI installer, I did pip install aeneas again and the it has been installed successfully. The force alignment code also runs successfully.

You might see the warning that the certificate for the installation package is expired in 2021. I just went ahead anyway.

Hope this helps.

nevertoday commented 2 years ago

python 3.7 will success .

nevertoday commented 1 year ago

how to install zh lanugauge this way

ezekiel747 commented 6 months ago

I'm also having the same issue while installing aeneas with pip/brew. I use M2 Apple Silicon.

Follow up: I followed this install file to download the All-in-one Installer (file name: aeneas-mac-setup-1.7.3.0_2.dmg) for macOS. After installing using the GUI installer, I did pip install aeneas again and the it has been installed successfully. The force alignment code also runs successfully.

You might see the warning that the certificate for the installation package is expired in 2021. I just went ahead anyway.

Hope this helps.

Didn't work for me. I'm on a M1. The all-in-one installer ran successfully, however i wasn't able to install aeneas:

However, espeak is installed: which espeak /opt/local/bin/espeak

What else can i do?