Skip to content

运行Test.py时出现错误OSError: cannot load library 'libsndfile.so.1': libsndfile.so.1: cannot open shared object file: No such file or directory #440

Description

@DoraemonMiku

系统是CentOS 7.3,按照readMe里面来一步步操作的,但是测试时候出现了这个异常(运行examples/tiny/里面的也会,下面运行的是test.py):
configure: WARNING: *** One or more of the external libraries (ie libflac, libogg and
configure: WARNING: *** libvorbis) is either missing (possibly only the development
configure: WARNING: *** headers) or is of an unsupported version.
configure: WARNING: ***
configure: WARNING: *** Unfortunately, for ease of maintenance, the external libs
configure: WARNING: *** are an all or nothing affair.
configure: WARNING: Touching files in directory tests/.
Install all dependencies successfully.
[root@iz4uregsg8u6ngz DeepSpeech]# test.py
-bash: test.py: command not found
[root@iz4uregsg8u6ngz DeepSpeech]# python test.py
Traceback (most recent call last):
File "test.py", line 9, in
from data_utils.data import DataGenerator
File "/root/DeepSpeech/data_utils/data.py", line 15, in
from data_utils.augmentor.augmentation import AugmentationPipeline
File "/root/DeepSpeech/data_utils/augmentor/augmentation.py", line 11, in
from data_utils.augmentor.noise_perturb import NoisePerturbAugmentor
File "/root/DeepSpeech/data_utils/augmentor/noise_perturb.py", line 8, in
from data_utils.audio import AudioSegment
File "/root/DeepSpeech/data_utils/audio.py", line 10, in
import soundfile
File "/usr/lib/python2.7/site-packages/soundfile.py", line 267, in
_snd = _ffi.dlopen('sndfile')
File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 832, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 828, in _load_backend_lib
return backend.load_library(path, flags)
OSError: cannot load library 'libsndfile.so.1': libsndfile.so.1: cannot open shared object file: No such file or directory

安装时候他给我一个警告是可能是因为这个原因?求解,小白一个。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions