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.
Non-ASCII Character error? #6572
Comments
|
Does the system default python version 2.6 or above? Check it with the following command:
|
|
@yan12125 Thanks for the response, this is what I get when entering that in. root@Nicks-Kali:~# python --version EDIT: Oh it looks like its working now, just did a reboot and reinstall. Thanks! |
|
Closing as the problem is solved. Feel free to open a new issue if there are other problems. A side note: DO NOT run youtube-dl as root unless you're updating it. Running as root introduces unnecessary security risks. |
|
I have the same problem on FreeBSD 10.1...
|
|
Adding a
Why is this even being distributed in binary form, it's a Python script. :\ |
|
Install from pip works
And |
|
OK, I've solved the mystery... Somehow my download got corrupted or someone is doing something nasty on my network.
Thanks. |
root@Nicks-Kali:
/Music# youtube-dl https://ormolycka.bandcamp.com/album/pistol-disko-2004-2011-oo43/Music# youtube-dl -UFile "/usr/local/bin/youtube-dl", line 2
SyntaxError: Non-ASCII character '\xe3' in file /usr/local/bin/youtube-dl on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
root@Nicks-Kali:
File "/usr/local/bin/youtube-dl", line 2
SyntaxError: Non-ASCII character '\xe3' in file /usr/local/bin/youtube-dl on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
root@Nicks-Kali:~/Music# apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version.
The following packages were automatically installed and are no longer required:
libav-tools libavfilter5 libcg libcggl libportaudiocpp0 nvidia-cg-dev
nvidia-cg-toolkit rtmpdump
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.