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

/usr/bin/youtube-dl: 1: Syntax error: newline unexpected #631

Closed
vandana-iyer opened this issue Jan 12, 2013 · 5 comments
Closed

/usr/bin/youtube-dl: 1: Syntax error: newline unexpected #631

vandana-iyer opened this issue Jan 12, 2013 · 5 comments

Comments

@vandana-iyer
Copy link

@vandana-iyer vandana-iyer commented Jan 12, 2013

Upgraded youtube-dl using the command sudo youtube-dl -U. It got updated to version 9999.99.99.
When I try to download videos, I keep getting the error:
/usr/bin/youtube-dl: 1: Syntax error: newline unexpected
After the upgrade, "sudo youtube-dl -U" too throws the same error.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 12, 2013

Which Python version are you using? The version 9999.99.99 is just a placeholder; we have switched to a new update system.

@vandana-iyer
Copy link
Author

@vandana-iyer vandana-iyer commented Jan 12, 2013

Python version is 2.7.2, on ubuntu 11.10.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 12, 2013

Thanks, I'll try to reproduce it. In the meantime, you can execute

sudo wget http://youtube-dl.org/downloads/2013.01.11/youtube-dl -O /usr/bin/youtube-dl

to get back a working youtube-dl. Sorry for the problems.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 12, 2013

We didn't define a tag for the latest version we specified. Fixed now - updates from a plain Ubuntu 11.10 will now download the intermediate version that supports the new update system. Thank you very much for reporting!

I'm closing this issue now, but feel free to comment if it hasn't been solved for you.

@phihag phihag closed this Jan 12, 2013
@vandana-iyer
Copy link
Author

@vandana-iyer vandana-iyer commented Jan 13, 2013

In the meantime I had upgraded to python3, uninstalled youtube-dl and installed again.
Updated youtube-dl now and it works. Thank you for the quick fix. I really appreciate it.

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
2 participants
You can’t perform that action at this time.