Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws exception on start #27

Open
beevk opened this issue May 28, 2024 · 3 comments
Open

Throws exception on start #27

beevk opened this issue May 28, 2024 · 3 comments

Comments

@beevk
Copy link

beevk commented May 28, 2024

Hi, thank you for making this library.
I cloned this repo, installed all the dependencies (npm i) using node v20.5.0, then I tried running it with npm run start

I'm getting this error when trying to run the program:

Downloading captions for Introduction...
node:internal/process/esm_loader:46
      internalBinding('errors').triggerUncaughtException(
                                ^
ffmpeg version 5.0.1-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
/home/user1/Documents/courses/algorithm-basics/The Last Algorithms Course You'll Need/1. Introduction/Introduction.tmp.mkv: No such file or directory

(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v20.5.02800

So I added the flag -trace-uncaught to the run command and it gives same error as above but with this extra information:

Thrown at:
    at loadESM (node:internal/process/esm_loader:40:33)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

I also tried with node 18.19.1 but same error.
Anyway to fix this?

@beevk beevk changed the title Fails to start Throws exception on start May 28, 2024
@recluzegeek
Copy link

recluzegeek commented May 30, 2024

This issue is the clone of #26
I got the same issue several time, while using fem-dl on Linux but it is working flawlessly on windows. I'm downloading a course right now using it, but on windows.

This issue is Linux specific only.

@nooreldeensalah
Copy link

Have you managed to solve this?

It seems to be an issue related to Unix-based systems, I tested the tool on Windows and it works fine.

@nooreldeensalah
Copy link

We can conclude that this is a compatibility issue on Unix-based systems, I've found an old fork that works on Linux.
The fork is 17 commits behind https://github.com/kruzkasu223/fem-dl-working/tree/master, my assumptions are perhaps the code broke while refactoring.

Thought I'd post this so others who get the issue get to try to use this solution

@beevk
Copy link
Author

beevk commented Jun 26, 2024

We can conclude that this is a compatibility issue on Unix-based systems, I've found an old fork that works on Linux. The fork is 17 commits behind https://github.com/kruzkasu223/fem-dl-working/tree/master, my assumptions are perhaps the code broke while refactoring.

Thought I'd post this so others who get the issue get to try to use this solution

Thanks for pointing to the fork. That helped :). I hope the bug is fixed soon and works across all the platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants