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

Why does `file youtube-dl` output "youtube-dl: data"? #12810

Closed
psycho23 opened this issue Apr 21, 2017 · 5 comments
Closed

Why does `file youtube-dl` output "youtube-dl: data"? #12810

psycho23 opened this issue Apr 21, 2017 · 5 comments

Comments

@psycho23
Copy link

@psycho23 psycho23 commented Apr 21, 2017

I'm 70% sure I tried the latest `file' command, and yet this still happens:

cd ~/Downloads #good
wget https://yt-dl.org/downloads/latest/youtube-dl #good
file youtube-dl #bad
youtube-dl: data

What is this file? How is it executable? This is wrong. If `file' can't detect the filetype, how can the OS?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 21, 2017

It's a zipped python app.

@dstftw dstftw closed this Apr 21, 2017
@psycho23
Copy link
Author

@psycho23 psycho23 commented Apr 21, 2017

And yet there is no indication otherwise by file.
Is there a file magic file that can at least say something like:
youtube-dl: Stand-alone python zip executable

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 21, 2017

Wrong:

$ file youtube-dl
youtube-dl: a /usr/bin/env python script executable (binary data)

@psycho23
Copy link
Author

@psycho23 psycho23 commented Apr 21, 2017

What? That's impossible!

psycho23@shiva ~ $ file --version
file-5.14
magic file from /etc/magic:/usr/share/misc/magic

psycho23@shiva ~ $ cat /etc/os-release | grep PRETTY_NAME
PRETTY_NAME="Ubuntu 14.04.3 LTS"

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 21, 2017

5.14 is 4 years old.

@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.