VoiceCraft icon indicating copy to clipboard operation
VoiceCraft copied to clipboard

ERROR: Could not build wheels for aeneas on ArchLinux

Open Yasand123 opened this issue 1 year ago • 1 comments

On ArchLinux, I got all the python packages (conda) and system packages. Since I'm on Arch I installed the corresponding system packages for Gradio with sudo pacman -S espeak-eg festival base-devel flac alsa-lib libsndfile vorbis-tools libxml2 libxslt zlib

However when I run pip install -r gradio_requirements.txt I get: ERROR: Could not build wheels for aeneas, which is required to install pyproject.toml-based projects.

Full output:

      running build_ext
      building 'aeneas.cdtw.cdtw' extension
      Warning: Can't read registry to find the necessary compiler setting
      Make sure that Python modules winreg, win32api or win32con are installed.
      INFO: C compiler: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -I/home/john/.miniconda3/envs/voicecraft/include -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -fPIC
      
      creating build/temp.linux-x86_64-cpython-39
      creating build/temp.linux-x86_64-cpython-39/aeneas
      creating build/temp.linux-x86_64-cpython-39/aeneas/cdtw
      creating build/temp.linux-x86_64-cpython-39/aeneas/cint
      INFO: compile options: '-I/home/john/.miniconda3/envs/voicecraft/lib/python3.9/site-packages/numpy/core/include -I['/home/john/.miniconda3/envs/voicecraft/lib/python3.9/site-packages/numpy/core/include'] -I/home/john/.miniconda3/envs/voicecraft/include/python3.9 -c'
      INFO: gcc: aeneas/cdtw/cdtw_func.c
      INFO: gcc: aeneas/cdtw/cdtw_py.c
      INFO: gcc: aeneas/cint/cint.c
      INFO: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -shared -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib build/temp.linux-x86_64-cpython-39/aeneas/cdtw/cdtw_func.o build/temp.linux-x86_64-cpython-39/aeneas/cdtw/cdtw_py.o build/temp.linux-x86_64-cpython-39/aeneas/cint/cint.o -o build/lib.linux-x86_64-cpython-39/aeneas/cdtw/cdtw.cpython-39-x86_64-linux-gnu.so
      building 'aeneas.cmfcc.cmfcc' extension
      INFO: C compiler: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -I/home/john/.miniconda3/envs/voicecraft/include -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -fPIC
      
      creating build/temp.linux-x86_64-cpython-39/aeneas/cmfcc
      creating build/temp.linux-x86_64-cpython-39/aeneas/cwave
      INFO: compile options: '-I/home/john/.miniconda3/envs/voicecraft/lib/python3.9/site-packages/numpy/core/include -I['/home/john/.miniconda3/envs/voicecraft/lib/python3.9/site-packages/numpy/core/include'] -I/home/john/.miniconda3/envs/voicecraft/include/python3.9 -c'
      INFO: gcc: aeneas/cint/cint.c
      INFO: gcc: aeneas/cmfcc/cmfcc_func.c
      INFO: gcc: aeneas/cmfcc/cmfcc_py.c
      INFO: gcc: aeneas/cwave/cwave_func.c
      aeneas/cmfcc/cmfcc_func.c: In function ‘_precompute_sin_table’:
      aeneas/cmfcc/cmfcc_func.c:83:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
         83 |     for (k = 1; k < size; ++k) {
            |                   ^
      aeneas/cmfcc/cmfcc_func.c: In function ‘fft’:
      aeneas/cmfcc/cmfcc_func.c:109:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
        109 |             for (li = lix; li <= m; li += lix) {
            |                               ^~
      INFO: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -shared -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib build/temp.linux-x86_64-cpython-39/aeneas/cint/cint.o build/temp.linux-x86_64-cpython-39/aeneas/cmfcc/cmfcc_func.o build/temp.linux-x86_64-cpython-39/aeneas/cmfcc/cmfcc_py.o build/temp.linux-x86_64-cpython-39/aeneas/cwave/cwave_func.o -o build/lib.linux-x86_64-cpython-39/aeneas/cmfcc/cmfcc.cpython-39-x86_64-linux-gnu.so
      building 'aeneas.cew.cew' extension
      INFO: C compiler: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -I/home/john/.miniconda3/envs/voicecraft/include -fPIC -O2 -isystem /home/john/.miniconda3/envs/voicecraft/include -fPIC
      
      creating build/temp.linux-x86_64-cpython-39/aeneas/cew
      INFO: compile options: '-I['/home/john/.miniconda3/envs/voicecraft/lib/python3.9/site-packages/numpy/core/include'] -I/home/john/.miniconda3/envs/voicecraft/include/python3.9 -c'
      INFO: gcc: aeneas/cew/cew_func.c
      INFO: gcc: aeneas/cew/cew_py.c
      INFO: gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -shared -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib build/temp.linux-x86_64-cpython-39/aeneas/cew/cew_func.o build/temp.linux-x86_64-cpython-39/aeneas/cew/cew_py.o -lespeak -o build/lib.linux-x86_64-cpython-39/aeneas/cew/cew.cpython-39-x86_64-linux-gnu.so
      /home/john/.miniconda3/envs/voicecraft/compiler_compat/ld: cannot find -lespeak: No such file or directory
      collect2: error: ld returned 1 exit status
      error: Command "gcc -pthread -B /home/john/.miniconda3/envs/voicecraft/compiler_compat -shared -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath,/home/john/.miniconda3/envs/voicecraft/lib -Wl,-rpath-link,/home/john/.miniconda3/envs/voicecraft/lib -L/home/john/.miniconda3/envs/voicecraft/lib build/temp.linux-x86_64-cpython-39/aeneas/cew/cew_func.o build/temp.linux-x86_64-cpython-39/aeneas/cew/cew_py.o -lespeak -o build/lib.linux-x86_64-cpython-39/aeneas/cew/cew.cpython-39-x86_64-linux-gnu.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: Failed building wheel for aeneas
  Running setup.py clean for aeneas
Failed to build aeneas
ERROR: Could not build wheels for aeneas, which is required to install pyproject.toml-based projects

Yasand123 avatar May 14 '24 16:05 Yasand123

You need to install cannot find -lespeak the lib for espeak.

Ph0rk0z avatar Jun 06 '24 11:06 Ph0rk0z

I had the same issue. I did the following ( I'm on Fedora Linux ):

  • sudo dnf install espeak
  • sudo dnf install espeak-devel
  • LIBRARY_PATH=/usr/lib64 pip install aeneas Then try install gradio requirements again. pip install -r gradio_requirements.txt

tom2698 avatar Jul 30 '24 04:07 tom2698