jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.5k stars 454 forks source link

Error! Unhandled error (execa). // Fedora Linux #389

Open ElijahNemr opened 2 years ago

ElijahNemr commented 2 years ago

Describe the bug Pasting a YouTube link immediately results in an error.

To Reproduce Steps to reproduce the behavior:

  1. Copy and paste YouTube video link into search bar
  2. Press enter

Expected behavior The video should begin to download

Additional info (please complete the following information):

Full Error Message Screenshot from 2022-06-27 17-03-31

StefanLobbenmeier commented 2 years ago

I think the issue is in downloading the yt-dlp binary

   ~  /opt/youtube-dl-gui/youtube-dl-gui                                                                                                                                                                                                 INT ✘  26s  
SentryError: Attempted to enable Electron native crash reporter but no DSN was supplied
    at new SentryError (/opt/youtube-dl-gui/resources/app.asar/node_modules/@sentry/electron/node_modules/@sentry/utils/dist/error.js:9:28)
    at MainBackend.<anonymous> (/opt/youtube-dl-gui/resources/app.asar/node_modules/@sentry/electron/dist/main/backend.js:152:27)
    at step (/opt/youtube-dl-gui/resources/app.asar/node_modules/tslib/tslib.js:143:27)
    at Object.next (/opt/youtube-dl-gui/resources/app.asar/node_modules/tslib/tslib.js:124:57)
    at /opt/youtube-dl-gui/resources/app.asar/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/opt/youtube-dl-gui/resources/app.asar/node_modules/tslib/tslib.js:113:16)
    at MainBackend._installNativeHandler (/opt/youtube-dl-gui/resources/app.asar/node_modules/@sentry/electron/dist/main/backend.js:146:24)
    at new MainBackend (/opt/youtube-dl-gui/resources/app.asar/node_modules/@sentry/electron/dist/main/backend.js:66:34)
    at MainClient.BaseClient (/opt/youtube-dl-gui/resources/app.asar/node_modules/@sentry/electron/node_modules/@sentry/core/dist/baseclient.js:52:25)
Sentry initialized
Checking for update
Error: Error: ENOENT: no such file or directory, open '/opt/youtube-dl-gui/resources/app-update.yml'
(node:13282) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/youtube-dl-gui/resources/app-update.yml'
(node:13282) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:13282) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Checking for a new version of ffmpeg.
Current ffmpeg version: 4.4.1
ffmpeg was already up-to-date! Version: 4.4.1
Checking for a new version of yt-dlp.
Error: ENOENT: no such file or directory, open '/home/stefanl/.youtube-dl-gui/ytdlVersion'
Binaries were already up-to-date! Version: null
No tasks to restore.
StefanLobbenmeier commented 2 years ago

Should be fixed by #375. Until then I cherry picked the commit and made a release of this here on my fork: https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/untagged-2184be06e67b370f8d26. That worked on my machine (Manjaro)

StefanLobbenmeier commented 2 years ago

Or as another workaround you can fix this manually by downloading https://github.com/yt-dlp/yt-dlp/releases/download/2022.06.29/yt-dlp_linux and putting this in the location mentioned in your error message (~/.youtube-dl-gui/yt-dlp_linux)

mj0123456789 commented 1 year ago

Worked on Ubuntu (22.04) Gnome. yt-dlp (installed through sudo apt install yt-dlp) => copied from /usr/bin to ~/.youtube-dl-gui/ then renamed yt-dlp-linux (my error message showed that syntax) => OpenVideoDownloader ok when adding links now, no more error message. Great! Thanks a lot folks. 🙏🌞

hayguen commented 1 year ago

Does also work on Windows' WSL Ubuntu 20.04.5 LTS. But had to rename to ~/.youtube-dl-gui/yt-dlp-unix as shown in the error message.

andnorxor commented 1 year ago

Related #401

himyjan commented 4 days ago

https://github.com/StefanLobbenmeier/youtube-dl-gui/releases

or

command line version https://github.com/jely2002/youtube-dl-gui/issues/354#issuecomment-1127269708