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

sh: /usr/local/bin/yt-dlp: No such file or directory #66

Closed
EricTheDerek opened this issue Apr 21, 2023 · 9 comments
Closed

sh: /usr/local/bin/yt-dlp: No such file or directory #66

EricTheDerek opened this issue Apr 21, 2023 · 9 comments
Labels
Bug Something isn't working
Milestone

Comments

@EricTheDerek
Copy link

Hello. I'm trying to open the latest MacYTDL, but this error keeps popping up.
sh: /usr/local/bin/yt-dlp: No such file or directory

I've previously been using version 1.19.1, but that's been not working since youtube made some changes and I realized my updating has fallen behind.

I'm running on Catalina.

@section83 section83 added this to the Research underway milestone Apr 22, 2023
@section83 section83 added the Bug Something isn't working label Apr 22, 2023
@section83
Copy link
Owner

section83 commented Apr 22, 2023

Hello EricTheDerek, thank you for posting and letting me know about the problem.

It looks like a bug. Can you help with some questions:

  • Does MacYTDL open to the Main dialog ? OR, does the error happen quickly when you try to start MacYTDL ?
  • Are you using youtube-dl or yt-dlp ?
  • Do you have an Homebrew install of yt-dlp ?
  • Do you have a MacPorts install of yt-dlp ?
  • Do you have "Check yt-dlp version on startup" turned on ?

If you are using youtube-dl you can change to yt-dlp. yt-dlp works with YouTube and has many more features. If you can't start MacYTDL you can switch manually:

  • In the Finder Desktop, press command-shift-g.
  • Type /usr/local/bin/ and Return.
  • Delete the file called youtube-dl – you will need to enter administrator credentials.
  • Try MacYTDL again – it might work and if so will ask if you want yt-dlp. Click on "OK"/"Yes"

If you are using a Homebrew install of yt-dlp, the only way to use v1.24 of MacYTDL is to remove the Homebrew install. I goofed when adding Homebrew recognition, a problem which will be fixed in v1.25.

UPDATE: No need to remove the Homebrew install completely. Just delete the symlink: /usr/local/bin/yt-dlp

You could try version 1.23.1 of MacYTDL which, depending on the problem you are having, might work.

Thanks.

@GrantGochnauer
Copy link

GrantGochnauer commented Apr 28, 2023

I am running into the same issue - just downloaded this for the first time today.

I get a dialog with this and then the app quits.

sh: /usr/local/bin/yt-dlp: No such file or directory
sh: /usr/local/bin/yt-dlp: No such file or directory (127)

It created a new preferences file on first load. I didn't have any other version installed prior to this. I do have yt-dlp installed via brew.

@section83
Copy link
Owner

GrantGochnauer, thank you for posting. I have a fix for the Homebrew bug. I hope to upload a quick release in the next few days. I need to do more testing.

Is your Mac running on Apple Silicon or Intel ?

MacYTDL should work if you remove the Homebrew install of yt-dip.

@GrantGochnauer
Copy link

GrantGochnauer commented Apr 29, 2023 via email

@section83
Copy link
Owner

Should release v1.24.1 tomorrow. It should respect Homebrew installs of YT-DLP and FFmpeg. If the startup works properly, the Utilities dialog should look like this:

Utilites - v1 24 1 - Homebrew installs of yt-dlp   ffmpeg

Any missing components will also be installed e.g. script library; preferences file.

@GrantGochnauer
Copy link

Thanks! I will give it a try when it's ready.

@section83
Copy link
Owner

Version 1.24.1 is out. I've tested the downloaded copy an on old Mac and found weird Finder errors which do not repeat. Hopefully, that's an artefact of my old Mac !

@GrantGochnauer
Copy link

Thank you! Confirmed this version is working.

@section83
Copy link
Owner

Many thanks for reporting back. Please post an issue/discussion or send an email if there are any features you would like added to MacYTDL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants