youwee icon indicating copy to clipboard operation
youwee copied to clipboard

Download failed (exit code -1)

Open wubengda opened this issue 8 months ago • 3 comments

Download failed (exit code -1): [PYI-16472:ERROR] Failed to load Python DLL 'C:\Users\jevonwu\AppData\Local\Temp_MEI130202\python310.dll'. [COMMAND] 2026-03-15T11:25:04.262665100+00:00 [C:\Users\jevonwu\AppData\Roaming\com.vanloctech.youwee\bin\yt-dlp.exe (bundled: false)] yt-dlp --newline --progress --no-warnings -f bestvideo[vcodec^=avc]+bestaudio/bestvideo+bestaudio/best -o \?\H:\banyun/%(title)s.%(ext)s --print-to-file after_move:filepath C:\Users\jevonwu\AppData\Local\Temp\youwee-fp-729cea44-4088-400e-97c8-a60f993c7bbe.txt --no-keep-video --no-keep-fragments --retries 3 --fragment-retries 3 --extractor-retries 2 --file-access-retries 2 --js-runtimes deno:C:\Users\jevonwu\AppData\Roaming\com.vanloctech.youwee\bin\deno.exe --ffmpeg-location C:\Users\jevonwu\AppData\Roaming\com.vanloctech.youwee\bin --cookies-from-browser edge:Default --force-overwrites --no-playlist --merge-output-format mp4 --embed-metadata --embed-thumbnail --convert-thumbnails jpg --sponsorblock-remove all -- https://www.youtube.com/watch?v=RMXdQM6V2wM&t=4s [STDERR] 2026-03-15T11:25:04.688057600+00:00 [PYI-16472:ERROR] Failed to load Python DLL 'C:\Users\jevonwu\AppData\Local\Temp_MEI130202\python310.dll'. [STDERR] 2026-03-15T11:25:04.699124+00:00

wubengda avatar Mar 15 '26 11:03 wubengda

Thanks a lot for the detailed log, that helps. From the stderr line [PYI-16472:ERROR] Failed to load Python DLL 'C:\Users\jevonwu\AppData\Local\Temp\_MEI130202\python310.dll', this error is actually coming from the yt-dlp.exe binary itself (PyInstaller), before it even starts doing any download work. It usually means the local yt-dlp.exe or its temporary unpacked files are corrupted or blocked by antivirus, so the embedded python310.dll cannot be loaded.

Could you please try the following steps? Open Youwee → Settings → Dependencies → yt-dlp, and use the button there to reinstall / update yt-dlp (this will redownload the binary). Temporarily disable any antivirus / security software or add an exception for yt-dlp.exe and the %TEMP%_MEI* folders, then try the download again. Alternatively, switch the yt-dlp source in Settings to System, install yt-dlp globally on your system, and see if that works.

If the problem still happens after these steps, could you share a fresh log (with the new command + stderr) and tell me which Windows version and antivirus you’re using? That will help me narrow it down further.

TTAWDTT avatar Mar 17 '26 16:03 TTAWDTT

Please re-check your yt-dlp.exe that you downloaded. Or switch to use yt-dlp app managed with stable or nightly and update to latest version (2026.03.17)

vanloctech avatar Mar 18 '26 15:03 vanloctech

This error is not caused by the YouTube URL or your Edge cookies. Your yt-dlp.exe is failing to start on Windows.

What happened:

  • yt-dlp is packaged as a standalone .exe
  • when it starts, it extracts a temporary Python runtime into your %TEMP% folder
  • on your machine, it failed to load python310.dll
  • because of that, yt-dlp crashed immediately and Youwee reported Download failed (exit code -1)

How to fix it:

  1. Open Youwee → Settings → Dependencies
  2. Reinstall or update yt-dlp
  3. If it still fails, delete this file and let Youwee download it again: C:\Users\jevonwu\AppData\Roaming\com.vanloctech.youwee\bin\yt-dlp.exe
  4. Check Windows Defender / antivirus and whitelist:
    • C:\Users\jevonwu\AppData\Roaming\com.vanloctech.youwee\bin\
    • %LOCALAPPDATA%\Temp\_MEI*
  5. If you already have a system-installed yt-dlp, switch to System yt-dlp in Settings > Dependencies

If you want, we can also guide you step by step based on your Windows setup.

vanloctech avatar May 10 '26 08:05 vanloctech