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 580325 - rsvg python script crashes if the default python version is >= 3
rsvg python script crashes if the default python version is >= 3
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.26.x
Other All
: Normal critical
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-26 19:17 UTC by Yitz Gale
Modified: 2012-01-14 16:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Fix print statements to be compatible with Python 3. (2.03 KB, patch)
2009-04-27 11:27 UTC, Yitz Gale
none Details | Review

Description Yitz Gale 2009-04-26 19:17:20 UTC
Steps to reproduce:
The rsvg python script obtains the python interpreter
from the current PATH on whatever platform it is running,
so it could be any version. But this script contains
print statements, which will not compile for version >= 3.
There may be other incompatibilities.

See similar bug #559947.

This is also http://trac.macports.org/ticket/19442 .

Stack trace:


Other information:
Comment 1 Dominic Lachowicz 2009-04-27 00:55:34 UTC
Patches welcomed. I'll apply those. The script only exists to replace a deprecated program, so this isn't much of a priority.
Comment 2 Yitz Gale 2009-04-27 11:27:35 UTC
Created attachment 133406 [details] [review]
Fix print statements to be compatible with Python 3.

This patch delays the pain by fixing all print statements to be
compatible with both Python 2 and Python 3. However, more
extensive changes will be needed as Python 3 gradually drifts away
from Python 2. In particular, the string format operator "%"
is scheduled to be deprecated in Python 3.1.
Comment 3 Christian Persch 2012-01-13 20:39:56 UTC
Would there be any objections to just removing this old, deprecated, compat, script?
Comment 4 Dominic Lachowicz 2012-01-13 22:55:49 UTC
(In reply to comment #3)
> Would there be any objections to just removing this old, deprecated, compat,
> script?

No, none.
Comment 5 Christian Persch 2012-01-14 16:02:24 UTC
Done on master.