GNOME Bugzilla – Bug 690917
Port to Python 3 and update shebangs in headers
Last modified: 2014-04-02 17:07:16 UTC
Several Python scripts in PiTiVi start with #!/usr/bin/env python or #!/usr/bin/python Instead, #!/usr/bin/env python2 should be used so the scripts will work on systems where "python" is Python 3. You can find all files with this problem by running grep -ER '^#!/usr/bin/' . in the PiTiVi git directory.
Actually, we're supposed to port to Python 3 someday. It is a goal for GNOME 3.8, though I doubt we'll make it that fast because we have more urgent matters to deal with right now. *Currently* I'd like the port to GES Assets and the changes to the timeline code to land first before doing invasive changes like that that might touch the entire codebase (though maybe the port to Python 3 might be trivial in our case, I'm not sure). In any case, this is available for anyone who would like to tackle this task :) See also https://live.gnome.org/GnomeGoals/Python3Porting
Yes sir, I would like to tackle this task :)
The headers have already been fixed by: commit 239860b0d79fbde7fb99c69c90137acd6b4f0105 Author: Lubosz Sarnecki <lubosz@gmail.com> Date: Tue Apr 9 20:58:40 2013 +0200 python: explicitly use python2
I ported Pitivi to Python 3. You can look at the patches in this issue: https://bugzilla.gnome.org/show_bug.cgi?id=726922 Maybe the issues should be linked.
I heard that shebangs have been dutifully upgraded. *** This bug has been marked as a duplicate of bug 726922 ***