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

youtube-dl fails to update on Windows if cwd != youtube-dl.exe #2718

Closed
phihag opened this issue Apr 7, 2014 · 5 comments
Closed

youtube-dl fails to update on Windows if cwd != youtube-dl.exe #2718

phihag opened this issue Apr 7, 2014 · 5 comments
Labels

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Apr 7, 2014

Reported by @AGSPhoenix:

ERROR: no write permissions on youtube-dl
I have youtube-dl.exe in my %PATH% so I can run it anywhere
if I run the update in the same directory as the executable it works
anywhere else and it borks

@phihag phihag added the bug label Apr 7, 2014
@arpitchauhan
Copy link

@arpitchauhan arpitchauhan commented Apr 17, 2014

Yes. It happens with me too.

@henrik-jensen
Copy link

@henrik-jensen henrik-jensen commented Sep 11, 2015

Just a note to those debugging the problem.
In addition to navigating to the folder of the exe, you can also mitigate the problem by using the full path of the executable when running from a different folder. It's just when youtube-dl.exe is found through the path the error occurs on my system.

@mikhaelkh
Copy link

@mikhaelkh mikhaelkh commented Oct 7, 2015

I thought of a temporary solution for Windows: create a youtube-dl-U.cmd in the same directory as youtube-dl.exe in PATH with this text:

@echo off
pushd "%~dp0"
cmd /c youtube-dl.exe -U >nul 2>&1
popd
@ghost
Copy link

@ghost ghost commented Nov 14, 2015

Still not working, added to PATH C:\cmds\youtube-dl.exe

@Starbuck2010
Copy link

@Starbuck2010 Starbuck2010 commented Nov 17, 2015

The 2015.11.15 released always failed if started with 2015.11.13 (youtube-dl.exe.new is complete but not renamed). The workaround is to download manually the 2015.11.15 (guess I already saw it in other issues) or to fall-back to a previous version you may have and run -U again (2015.11.10 complete successfully the -U).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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