ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.72k stars 10.07k forks source link

Windows .exe dont start #10874

Open YannisHeine opened 8 years ago

YannisHeine commented 8 years ago

What is the purpose of your issue?


Description of your issue, suggested solution and other information

I Downloaded the youtube-dl.exe on my Windows Server 2012 i have python 2.7 installed.

When i want now download a Video (over commandline) i get an error by Windows that the Application was not success to start with error code (0x000007d) and than nothing happen .

dstftw commented 8 years ago

Post the log of what you enter and what you get as output.

YannisHeine commented 8 years ago

I open command line and type youtube-dl.exe http://www.youtube.com/watch.... http://prnt.sc/crdgjg

Than i get this errors http://prnt.sc/crdgrr (this says there was an erro with the Application) http://prnt.sc/crdgxa

dstftw commented 8 years ago

Post the output of where youtube-dl.exe.

YannisHeine commented 8 years ago

http://prntscr.com/crdkju "C:\SinusBot\youtube-dl.exe"

dstftw commented 8 years ago

Microsoft Visual C++ 2010 Redistributable Package (x86) installed?

YannisHeine commented 8 years ago

Yes

dstftw commented 8 years ago

Post the output of where msvcr100.dll.

YannisHeine commented 8 years ago

"C:\Windows\System32\msvcr100.dll"

StevenDTX commented 8 years ago

There are a thousands reasons you could get a 0x000007d. Have you deleted, and re-downloaded youtube-dl.exe?

Since you are on WS2012, you have powershell. Try this:

Invoke-WebRequest "https://github.com/rg3/youtube-dl/releases/download/2016.10.07/youtube-dl.exe" -OutFile C:\SinusBot\youtube-dl.exe
dstftw commented 8 years ago

Post the output of certutil -hashfile youtube-dl.exe md5.

YannisHeine commented 8 years ago

Yes i deleted and redownloaded it but it do not change anything

YannisHeine commented 8 years ago

certutil -hashfile youtube-dl.exe md5 ->

ff 22 5e 66 3b d4 45 6a 6b 4a 14 54 02 9d cd 9c (http://prntscr.com/crdrk1)

dstftw commented 8 years ago

Are you able to run any exe from cmd at all?

StevenDTX commented 8 years ago

If you right-click on the file, and click properties, does it have an "unblock" button?

YannisHeine commented 8 years ago

yes i can run other .exe

YannisHeine commented 8 years ago

No no "unblock" button

YannisHeine commented 8 years ago

I have now take a look at the Windows error Message

But it´s say nothing for me

Problem Signature: Problem event name: APPCRASH Application name: youtube-dl.exe Application version: 2016.10.7.0 Application time stamp: 54467a4f Error module name: ntdll.dll Error module version: 6.3.9600.17415 Error module time stamp: 54504b0d Exception code: c000007b Exception offset: 000a36e5 Operating system version: 6.3.9600.2.0.0.400.8 Area ID: 1031 Additional Information 1: 1abe Additional Information 2: 1abee00edb3fc1158f9ad6f44f0f6be8 Additional information 3: 1abe Additional Information 4: 1abee00edb3fc1158f9ad6f44f0f6be8

Hrxn commented 8 years ago

Hm..

If you use where .. try it from a different location, or another drive (D:, E:..), otherwise it won't test if PATH is really working properly.

Without really looking deeper into this, I'd say that is the typical runtime error.

If you use an 64-bit Windows, you could also try to run this:

Microsoft Visual C++ 2010 Redistributable Package (x64) https://www.microsoft.com/en-us/download/details.aspx?id=14632

In addition to this: Microsoft Visual C++ 2010 Redistributable Package (x86) https://www.microsoft.com/en-US/download/details.aspx?id=5555

If nothing else helps, there is another C++ 2010 runtime package Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) https://www.microsoft.com/en-us/download/details.aspx?id=8328

dstftw commented 8 years ago

Different redists won't have any effect since youtube-dl only depends on 2010 x86.

YannisHeine commented 8 years ago

I try the where from other drive and it link correctly

YannisHeine commented 8 years ago

i also installed the other C++ Redistributable but nothing changed

Hrxn commented 8 years ago

Okay, then it is not the typical runtime error. Windows Server shouldn't be an issue, either. So I guess there is something more wrong with your OS..

YannisHeine commented 8 years ago

hmm okay thank you for help ... so than i will create a hyper-v vm with linux...

yan12125 commented 8 years ago

You can also install Python 2.6+ or 3.2+ from www.python.org, download the Unix version of youtube-dl and run python.exe youtube-dl. If python.exe runs fine but youtube-dl.exe not, come back and report it. If python.exe fails too, you may want to go to https://bugs.python.org/ and ask Python gurus.

YannisHeine commented 8 years ago

I am sry i found no time until now.

So the Python version did not change anything.

But python.exe youtube-dl worked fine thank you :)

yan12125 commented 8 years ago

Thanks for the feedback. What's your python version? (i.e. the output of python.exe --version)

YannisHeine commented 8 years ago

Python 2.7.12

LeoRiether commented 5 years ago

Seems like this hasn't been updated for a while now, is this still an issue or should we close it?

Hrxn commented 5 years ago

Close it.

whateverusernameisnottaken commented 2 years ago

Is there some way to update this to get it to use a newer version of the runtime libraries? I'm getting the same error, and MS has removed the 2010 version from its website.

Vangelis66 commented 2 years ago

and MS has removed the 2010 version from its website.

If your issue is related to the MSVC++2010 redistributable, read my comment here :wink: