FS#21061 - [Python3] Gramps cannot be run with python3

Attached to Project: Community Packages
Opened by Frederic Bezies (fredbezies) - Monday, 04 October 2010, 17:41 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 05 October 2010, 05:41 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Another broken software, gramps.

Cannot be run after python3 update.

Here is the error log I get in terminal :

gramps &
[1] 25852
[fred@fredo-arch ~]$ File "/usr/share/gramps/gramps.py", line 75
print 'No translation in some gtk.Builder strings, '
^
SyntaxError: invalid syntax

Additional info:

[fred@fredo-arch ~]$ pacman -Si gramps
Dépôt : community
Nom : gramps
Version : 3.2.3-1

Steps to reproduce:

Related to gnome-python-extras update ?!

Just upgrade to python 3 :)
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 05 October 2010, 05:41 GMT
Reason for closing:  Fixed
Comment by Frederic Bezies (fredbezies) - Monday, 04 October 2010, 17:53 GMT
Can be fixed by editing /usr/bin/gramps and modifying last line :

exec /usr/bin/python -O $GRAMPSDIR/gramps.py "$@"

by

exec /usr/bin/python2 -O $GRAMPSDIR/gramps.py "$@"

But spellcheck won't work :

"Mise en garde : la vérification orthographique est désactivée; installez pyenchant/python-enchant pour l'activer."

=> Warning : spellcheck is deactivated ; please install pyenchant/python-enchant in order to activate it.
Comment by Eric Belanger (Snowman) - Monday, 04 October 2010, 18:08 GMT
It looks like it was skipped in the python rebuild.

EDIT: Probably other file in the package needs to be adapted to use python2.

Loading...