通过拱上的pip安装webrtcvad的问题

问题描述 投票:0回答:1

我正在尝试通过pip在Arch上安装webrtcvad语音激活检测器,但出现以下编译器错误:

    gcc -pthread -shared -B /home/erik/anaconda3/envs/arp/compiler_compat -L/home/erik/anaconda3/envs/arp/lib -Wl,-rpath=/home/erik/anaconda3/envs/arp/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/vector_scaling_operations.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/spl_init.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/resample_fractional.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/resample_by_2_internal.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/resample_48khz.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/real_fft.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/min_max_operations.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/get_scaling_square.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/energy.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/downsample_fast.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/division_operations.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/cross_correlation.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/complex_fft.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/signal_processing/complex_bit_reverse.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/webrtc_vad.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/vad_sp.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/vad_gmm.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/vad_filterbank.o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/vad_core.o -o build/lib.linux-x86_64-3.7/_webrtcvad.cpython-37m-x86_64-linux-gnu.so
    /home/erik/anaconda3/envs/arp/compiler_compat/ld: build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o: unable to initialize decompress status for section .debug_info
    /home/erik/anaconda3/envs/arp/compiler_compat/ld: build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o: unable to initialize decompress status for section .debug_info
    /home/erik/anaconda3/envs/arp/compiler_compat/ld: build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o: unable to initialize decompress status for section .debug_info
    /home/erik/anaconda3/envs/arp/compiler_compat/ld: build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o: unable to initialize decompress status for section .debug_info
    build/temp.linux-x86_64-3.7/cbits/pywebrtcvad.o: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Command errored out with exit status 1: /home/erik/anaconda3/envs/arp/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4rnipwf_/webrtcvad/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4rnipwf_/webrtcvad/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-hc3rws4_/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

我的系统信息是:

Operating System: Antergos Linux
Kernel: Linux 5.3.12-arch1-1
Architecture: x86-64

Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] :: Anaconda, Inc. on linux

我试图在git问题中发布suggestion,但不适用于我的情况。我不知道它是否相关,我也收到这种类型的警告:

gcc -pthread -B /home/erik/anaconda3/envs/arp/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWEBRTC_POSIX -Icbits -I/home/erik/anaconda3/envs/arp/include/python3.7m -c cbits/webrtc/common_audio/vad/vad_core.c -o build/temp.linux-x86_64-3.7/cbits/webrtc/common_audio/vad/vad_core.o
In file included from cbits/webrtc/common_audio/vad/vad_core.h:19,
                 from cbits/webrtc/common_audio/vad/vad_core.c:11:
cbits/webrtc/common_audio/signal_processing/include/signal_processing_library.h:115:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  115 | void WebRtcSpl_Init();
      | ^~~~

非常感谢您提供有关如何解决此问题或在何处查找有关错误的其他信息的任何提示。

python-3.x pip webrtc arch
1个回答
0
投票

当我尝试安装其他软件时出现了类似的问题。在寻找解决方案时,我遇到了this issue。运行以下2条命令可以解决两个问题:

sudo pacman -U https://archive.archlinux.org/packages/e/elfutils/elfutils-0.174-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/libelf-0.174-1-x86_64.pkg.tar.xz
sudo pacman -U https://archive.archlinux.org/packages/b/binutils/binutils-2.30-5-x86_64.pkg.tar.xz 

我希望这对其他人有帮助。干杯!

© www.soinside.com 2019 - 2024. All rights reserved.