Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 错误:OSError:libmediainfo.so.0:无法打开共享对象文件:没有此类文件或目录_Python_Python 3.x_Api_Python Requests - Fatal编程技术网

Python 错误:OSError:libmediainfo.so.0:无法打开共享对象文件:没有此类文件或目录

Python 错误:OSError:libmediainfo.so.0:无法打开共享对象文件:没有此类文件或目录,python,python-3.x,api,python-requests,Python,Python 3.x,Api,Python Requests,我在尝试运行此操作并从系统发送音频文件时遇到此错误 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 impor

我在尝试运行此操作并从系统发送音频文件时遇到此错误

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)

您应该正确安装libmediainfo dev

如果您使用的是Ubuntu或debian run:

sudo apt-get update -y
sudo apt-get install -y libmediainfo-dev
如果您正在使用redhat、centos或fedora run:

yum install libmediainfo

您应该正确安装libmediainfo dev

如果您使用的是Ubuntu或debian run:

sudo apt-get update -y
sudo apt-get install -y libmediainfo-dev
如果您正在使用redhat、centos或fedora run:

yum install libmediainfo