youtubedl和使用它的工具出错。可能和aria2c有关?

2024-06-26 14:01:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我被难住了。我到处搜索,什么也找不到。我还试着安装pyenv,看看我是否做了一些事情来搞乱我的python。尝试了不同版本的python,但它仍然给我这个错误。。。一开始很好,然后:

[generic] master: Requesting header
WARNING: Falling back on generic information extractor.
[generic] master: Downloading webpage
[generic] master: Extracting information
[dashsegments] Total fragments: 127
[download] Destination: temp/video_encrypted.mp4
ERROR: unable to download video data: [Errno 2] No such file or directory: '/mnt/mpathl/tee             ge/wow2160/binaries/youtube_dl/downloader/../../binaries/aria2c'
Traceback (most recent call last):
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 1915, in process_             info
    success = dl(filename, info_dict)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 1854, in dl
    return fd.download(name, info)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/downloader/common.py", line 366, in d             ownload
    return self.real_download(filename, info_dict)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/downloader/dash.py", line 76, in real             _download
    aria_out = subprocess.run(cmd)
  File "/home/teege/.pyenv/versions/3.6.0/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/teege/.pyenv/versions/3.6.0/lib/python3.6/subprocess.py", line 707, in __init             __
    restore_signals, start_new_session)
  File "/home/teege/.pyenv/versions/3.6.0/lib/python3.6/subprocess.py", line 1326, in _exec             ute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/mpathl/teege/wow2160/binaries             /youtube_dl/downloader/../../binaries/aria2c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "wow.py", line 368, in <module>
    download_stream(config['manifest_url'], tracks['video']['id'], video_encrypted)
  File "wow.py", line 198, in download_stream
    if not ydl.download([manifest]) == 0:
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 2008, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 807, in extract_i             nfo
    return self.process_ie_result(ie_result, download, extra_info)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 861, in process_i             e_result
    return self.process_video_result(ie_result, download=download)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 1642, in process_             video_result
    self.process_info(new_info)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 1917, in process_             info
    self.report_error('unable to download video data: %s' % error_to_compat_str(err))
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 624, in report_er             ror
    self.trouble(error_message, tb)
  File "/mnt/mpathl/teege/wow2160/binaries/youtube_dl/YoutubeDL.py", line 594, in trouble
    raise DownloadError(message, exc_info)
binaries.youtube_dl.utils.DownloadError: ERROR: unable to download video data: [Errno 2] No              such file or directory: '/mnt/mpathl/teege/wow2160/binaries/youtube_dl/downloader/../../bi             naries/aria2c'

任何线索或帮助将不胜感激


Tags: inpyinfoyoutubedownloadvideolinefile