youtube_upload.py uses python2 interpretor
Closed this issue · 5 comments
GoogleCodeExporter commented
youtube_upload.py uses /usr/bin/python2 interpretor, which is not present on
ubuntu 10.04 machines.
Original issue reported on code.google.com by skliarie@gmail.com
on 13 Apr 2011 at 11:22
GoogleCodeExporter commented
well, there are distros who created the python2 link, other that do not. In the
latter case, just create manually the symbolic link:
$ ln -s /usr/bin/python2.x /usr/local/bin/python2
Original comment by tokland
on 13 Apr 2011 at 12:23
- Changed state: WontFix
GoogleCodeExporter commented
Some users might have no root access on their machines. Also, /usr/bin/python
is guaranteed to work out of the box in more cases than not. And ubuntu is
pretty widespread distro.
IMHO, it is more correct to use /usr/bin/python in your script and (if you feel
necessary) stick couple of lines to make sure interpretor's version is
appropriate.
Original comment by skliarie@gmail.com
on 13 Apr 2011 at 12:29
GoogleCodeExporter commented
It's my understanding that at least ArchLinux (this one for sure), Gentoo or
Fedora have this link. python3 is coming, so putting /usr/bin/python is no real
solution for the future, this will point eventually to python v3.x. Probably
the easiest solution is that someone created a PPA package for Ubuntu users.
> Some users might have no root access on their machines.
well, they can still edit the script and change the she-bang. It's not a
deal-breaker.
Original comment by tokland
on 13 Apr 2011 at 12:43
GoogleCodeExporter commented
For those of us who are not programmers but know our way around editing
existing code, can you provide us with some idea of where we would make the
edits to point to 'python2'? Also, to 'pycurl' as many installs on VPS are
using CentOS where it is named 'python-pycurl'.
Thank you in advance.
Original comment by brucewol...@gmail.com
on 27 Dec 2011 at 8:10
GoogleCodeExporter commented
Original comment by tokland
on 13 May 2014 at 2:55