GNOME Bugzilla – Bug 696324
gtester-report doesn't work with Python 3.x
Last modified: 2015-11-05 11:54:41 UTC
There's some indentation failures and a print statement that makes this script fail with Python 3.x. Attached is a patch to correct this. After patching the script still runs with Python 2.x
Created attachment 239495 [details] [review] Patch to fix problem
Adding this as blocker to the python3 tracker bug. The patch still applies and fixes the syntax issue. In addition to this, we should likely use @PYTHON@ in the hashbang line to use the configured Python version, following the same approach as gdbus-codegen.
Review of attachment 239495 [details] [review]: Looks good to me.
(In reply to Jürg Billeter from comment #2) > Adding this as blocker to the python3 tracker bug. The patch still applies > and fixes the syntax issue. In addition to this, we should likely use > @PYTHON@ in the hashbang line to use the configured Python version, > following the same approach as gdbus-codegen. Care to prepare a patch on top of this one?
Comment on attachment 239495 [details] [review] Patch to fix problem I just noticed that there is already an install-exec-hook that replaces the hashbang line as appropriate, so no change should be necessary there. commit 4d74ca4c3ad3c9900caf320b39433e68a7db8465 Author: Jan de Groot <jan@jgc.homeip.net> Date: Thu Mar 21 19:51:28 2013 +0000 Make gtester-report compatible with Python 3 Convert tabs to spaces and replace print with print(). The script still works with Python 2.x. https://bugzilla.gnome.org/show_bug.cgi?id=696324
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.