Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

/usr/bin/python: can't open file 'youtube-dl': [Errno 2] No such file or directory #2

Closed
nodiscc opened this issue Jul 3, 2014 · 5 comments

Comments

@nodiscc
Copy link

nodiscc commented Jul 3, 2014

When I try to download a video using my local copy of alltube, I get the "An error occured" page with the following message: /usr/bin/python: can't open file 'youtube-dl': [Errno 2] No such file or directory

youtube-dl is properly installed and working from the shell on that machine (Debian Stable, apache 2.2, php 5.4.4)

How would I fix this?

@Rudloff
Copy link
Owner

Rudloff commented Jul 4, 2014

You need to have a copy of the youtube-dl binary in your AllTube folder.

We might add an option to specify the path to the binary.

@nodiscc
Copy link
Author

nodiscc commented Jul 5, 2014

Right, I fixed it by adding a symbolic link to /usr/bin/youtube-dl. Can I submit a patch for this (symlink present by default)?

@Rudloff
Copy link
Owner

Rudloff commented Jul 5, 2014

I would prefer to have an option for manually setting the path to youtube-dl instead, as AllTube requires a rather recent version of youtube-dl (cf. #3) and the version provided by the distribution might be too old. (Also on Mac OS, youtube-dl is more likely to be installed elsewhere, often in /opt/local/bin).

@Rudloff Rudloff closed this as completed in 8825ff2 Jul 5, 2014
@Rudloff
Copy link
Owner

Rudloff commented Jul 5, 2014

I have added a config.php file where you can set the path to youtube-dl.

@nodiscc
Copy link
Author

nodiscc commented Jul 5, 2014

Perfect, thanks!

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

No branches or pull requests

2 participants