HFrost0 / bilix

⚡️Lightning-fast async download tool for bilibili and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api错误

sniperrich opened this issue · comments

我运行
from bilix.sites.bilibili import DownloaderBilibili
import asyncio

async def main():
async with DownloaderBilibili() as d:
await d.get_video('https://www.bilibili.com/video/BV1zy4y1c7Wn/?spm_id_from=333.788.recommend_more_video.16&vd_source=1821f0cb675f4d222bb3ffd5683a6539')

asyncio.run(main())
显示
C:\Users\rich\AppData\Local\Programs\Python\Python39\python.exe C:\Users\rich\Downloads\qttt\test.py
Traceback (most recent call last):
File "C:\Users\rich\Downloads\qttt\test.py", line 10, in
asyncio.run(main())
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\rich\Downloads\qttt\test.py", line 7, in main
await d.get_video('https://www.bilibili.com/video/BV1zy4y1c7Wn/?spm_id_from=333.788.recommend_more_video.16&vd_source=1821f0cb675f4d222bb3ffd5683a6539')
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\bilix\download\base_downloader.py", line 75, in wrapper
return await func(*new_args, **kwargs)
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\bilix\sites\bilibili\downloader.py", line 436, in get_video
await upper(path_lst, media_path)
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\bilix\ffmpeg.py", line 32, in combine
await run_process(cmd)
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\anyio_core_subprocesses.py", line 58, in run_process
async with await open_process(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\anyio_core_subprocesses.py", line 133, in open_process
return await get_async_backend().open_process(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\site-packages\anyio_backends_asyncio.py", line 2227, in open_process
process = await asyncio.create_subprocess_exec(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\subprocess.py", line 236, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1676, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 394, in _make_subprocess_transport
transp = _WindowsSubprocessTransport(self, protocol, args, shell,
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\base_subprocess.py", line 36, in init
self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 890, in _start
self._proc = windows_utils.Popen(
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_utils.py", line 153, in init
super().init(args, stdin=stdin_rfd, stdout=stdout_wfd,
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\rich\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。