From: Gary B. <bur...@ya...> - 2007-10-20 20:35:39
|
Hello Benny,=0A=0A>>Perhaps somebody with python 2.4 still installed can tr= y? Perhaps an English native speaker should check the error message too ;-)= =0A=0A=0A=0AI switched my system back to Python 2.4.4 and tried your change= and still got:=0A=0A=0A=0A=0A4502: ERROR: gramps.py: line 180: Gramps fail= ed to start.=0ATraceback (most recent call last):=0A File "gramps.py", lin= e 172, in run=0A import gramps_main=0A File "/home/gramps2/gramps30/src= /gramps_main.py", line 47, in ?=0A import ViewManager=0A File "/home/gr= amps2/gramps30/src/ViewManager.py", line 65, in ?=0A import DisplayState= =0A File "/home/gramps2/gramps30/src/DisplayState.py", line 52, in ?=0A = import gen.db=0A File "/home/gramps2/gramps30/src/gen/db/__init__.py", li= ne 23, in ?=0A from base import *=0A File "/home/gramps2/gramps30/src/g= en/db/base.py", line 55, in ?=0A from iterator import CursorIterator=0A = File "/home/gramps2/gramps30/src/gen/db/iterator.py", line 1=0A from .= .utils import LongOpStatus=0A ^=0A SyntaxError: invalid syntax=0A= =0A=0AThis bit of python 2.5 syntax appears in a "from ... import" so still= gets called when the packages are imported. I guess for this to work your = code needs to go into gramps.py before any gramps specific code is imported= , i.e. before gramps_main is imported.=0A=0ABye=0A=0AGary=0A=0A=0A=0A=0A=0A= =0A ___________________________________________________________=0AYaho= o! Answers - Got a question? Someone out there knows the answer. Try it=0An= ow.=0Ahttp://uk.answers.yahoo.com/ |