MrS0m30n3 / youtube-dl-gui

A cross platform front-end GUI of the popular youtube-dl written in wxPython.
The Unlicense
9.27k stars 1.58k forks source link

is not a valid Win32 application [Solution Found] #286

Closed ghost closed 6 years ago

ghost commented 6 years ago

What is the purpose of your issue?

Bug report

Exception in thread Thread-2:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "youtube_dl_gui\downloadmanager.pyc", line 599, in run
  File "youtube_dl_gui\downloaders.pyc", line 162, in download
  File "youtube_dl_gui\downloaders.pyc", line 337, in _create_process
  File "subprocess.pyc", line 390, in __init__
  File "subprocess.pyc", line 640, in _execute_child
WindowsError: [Error 193] %1 is not a valid Win32 application

What operating system do you use ?

Windows 8 64bit, I have used both the portable version and the setup version, both have failed, I even used the lated youtube-dl

List of actions to perform to reproduce the problem:

  1. ran youtube-dl-gui, pasted the youtube url, chosen mp4 format
  2. added the link
  3. clicked start

What is the expected behaviour ?

To download

What happens instead ?

stuck in Queued 0%


ghost commented 6 years ago

@MrS0m30n3 I found the solution! When you run Youtube-DLG it creates a folder C:\Users\ [YOUR USERNAME] \AppData\Roaming\youtube-dlg The problem was that this created folder contained youtube-dl.exe with a filesize of 0 bytes, so I corrected this issue by copying youtube-dl.exe to that folder, and now it soled the problem.

ghost commented 6 years ago

@MrS0m30n3 it seems that Youtube-DLG doesn't look for youtube-dl.exe in it's current folder, instead it looks for youtube-dl.exe in the \AppData\Roaming\youtube-dlg

TTMARSH commented 6 years ago

good.