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.
Fix python shebang #556
Fix python shebang #556
Comments
|
Note: I do seem to have python2 symlinked in my Slackware machine, but take into account the "python2" link is only made by default in Python 2.7. This could be a problem for people running Python 2.6. |
|
I just realised that the python2 symlink is added manually in the package so you need to assume that other distros are doing the same. So changing the shebang might introduce breakage in other distros depending how they handle the python2 and python3 co-existence. I agree that adding python3 support would be the best solution here for everyone. |
|
At least the youtube IE should work now with Python 3, so I'm closing this issue. |
|
Ubuntu 20.04 has python3 installed but python is not defined. If you don't want to modify any config you can make it work with:
|
The python shebang at the begining of the files:
!/usr/bin/env python
should be changed to:
!/usr/bin/env python2
as recommended in PEP 394[1]. This change will make youtube-dl work out of the box on distros like Arch Linux where python is a symlink to python3. Currently, I need to unzip the python archive, change the shebang and rezip everything which is messy.
Thanks.
[1]http://www.python.org/dev/peps/pep-0394/