通过Arch上的pip安装webrtcvad时出现问题

时间:2019-12-13 10:23:12

标签: python-3.x pip webrtc arch

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

|| return $?

我的系统信息是:

    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.

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

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

任何有关如何解决此问题或在哪里寻找有关错误的其他信息的提示,将不胜感激。

1 个答案:

答案 0 :(得分:0)

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

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 

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