Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Sytax error on CentOS #415
Comments
|
That's strange, we should declare an encoding. I'll look into it. |
|
awesome , thank you. is there anything I can do in the meantime as a hack? |
|
Oh, sorry, should've seen it right away. It looks like your version of Python is severely outdated. Can you update to 2.6 or newer? Also, what version of CentOS are you running? As a workaround, you can just unzip the file and create a symlink youtube-dl, like this:
|
|
it works!! I am sorry to have wasted your time with this. I just installed a fresh python 2.7.3 and it works now. wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz Add the install path (/usr/local/bin/python : by default) to ~/.bash_profile It will not break yum or any other things which are dependent on python24. Hope this helps other centOS users. thank y |
I get this error when I run youtube-dl
sys:1: DeprecationWarning: Non-ASCII character '\x93' in file /usr/local/bin/youtube-dl on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
File "/usr/local/bin/youtube-dl", line 2
PK???YW?6̢?V''???x8?e}W?j8??|
?&i??Փ?p?L??R?'?~??diź????G??;?^?z?<?RQ?U???t???<????+
|C?? Z?M???$ֹZ!?(??M????s'Օ?5"Ҧ??6"???U?cXi=Q?6?_?Q???Mޤ?Z????p???S??`??j?,?@? ??FBs???X??7 к?#?Mt
^
SyntaxError: invalid syntax
I have tried updating python and using your latest version
sudo wget --no-check-certificate http://raw.github.com/rg3/youtube-dl/master/youtube-dl -O /usr/local/bin/youtube-dl
Please help,
Your app IS THE BEST and I want to use it desperately.