After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690917 - Port to Python 3 and update shebangs in headers
Port to Python 3 and update shebangs in headers
Status: RESOLVED DUPLICATE of bug 726922
Product: pitivi
Classification: Other
Component: General
Git
Other Linux
: Low normal
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks: python3
 
 
Reported: 2012-12-31 10:59 UTC by Kerrick Staley
Modified: 2014-04-02 17:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kerrick Staley 2012-12-31 10:59:21 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.
Comment 1 Jean-François Fortin Tam 2012-12-31 15:09:17 UTC
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
Comment 2 Abhinav 2013-03-12 16:53:25 UTC
Yes sir, I would like to tackle this task :)
Comment 3 chell22m 2013-04-14 19:14:15 UTC
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
Comment 4 Lubosz Sarnecki 2014-03-27 13:10:06 UTC
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.
Comment 5 Jean-François Fortin Tam 2014-04-02 17:07:16 UTC
I heard that shebangs have been dutifully upgraded.

*** This bug has been marked as a duplicate of bug 726922 ***