首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误: OSError: libmediainfo.so.0:无法打开共享对象文件:没有这样的文件或目录

错误: OSError: libmediainfo.so.0:无法打开共享对象文件:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2020-03-17 10:18:32
回答 1查看 3.3K关注 0票数 1

当我试图运行这个错误并从系统发送一个音频文件时,我得到了这个错误。

代码语言:javascript
复制
self._handle = _dlopen(self._name, mode)
OSError: libmediainfo.so.0: cannot open shared object file: No such file or directory

from __future__ import print_function
import time
import deepaffects
from deepaffects.rest import ApiException
from pprint import pprint

# Configure API key authorization: UserSecurity
deepaffects.configuration.api_key['apikey'] = 'xxxxxxxxxxxxxxxxxxxxx'
# create an instance of the API class
api_instance = deepaffects.DenoiseApi()
body = deepaffects.Audio.from_file('final_test1.wav') # Audio | Audio object that needs to be denoised.**Error in this line** 
webhook = 'https://webhook.site/9da66e31-c5cc-4474-8d72-7320eaa7c406' # str | The webhook 
url where result from async resource is posted
#request_id = 'request_id_example' # str | Unique identifier for the request (optional)

try:
    # Denoise an audio file
    api_response = api_instance.async_denoise_audio(body, webhook)
    print(api_response)
except ApiException as e:
    print("Exception when calling DenoiseApi->async_denoise_audio: %s\n" % e)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-17 10:51:50

您应该正确安装libmediainfo-dev,

如果您正在使用Ubuntu或debian,请运行:

代码语言:javascript
复制
sudo apt-get update -y
sudo apt-get install -y libmediainfo-dev

如果你使用的是红帽,圆点或软呢帽跑:

代码语言:javascript
复制
yum install libmediainfo
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60720282

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档