Syntax Error in caldavxml.py line 97
dear all, I build the DCS on a Linux CentOS machine running python 2.5.1 x86_64 everything compiled fine, but when i tried to start the server, i do get the following syntax error: ========= Output of run =============================== Starting server... exec python /root/CalDEV/Twisted/bin/twistd -n caldav -f /root/CalDEV/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined Traceback (most recent call last): File "/root/CalDEV/Twisted/bin/twistd", line 19, in ? run() File "/root/CalDEV/Twisted/twisted/scripts/twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/root/CalDEV/Twisted/twisted/application/app.py", line 689, in run config.parseOptions() File "/root/CalDEV/Twisted/twisted/application/app.py", line 669, in parseOptions usage.Options.parseOptions(self, options) File "/root/CalDEV/Twisted/twisted/python/usage.py", line 226, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/root/CalDEV/Twisted/twisted/application/app.py", line 680, in subCommands self.loadedPlugins[plug.tapname] = plug File "/root/CalDEV/CalendarServer/twisted/plugins/caldav.py", line 13, in getProperty return getattr(reflect.namedClass(self.serviceMakerClass), propname) File "/root/CalDEV/Twisted/twisted/python/reflect.py", line 349, in namedObject module = namedModule('.'.join(classSplit[:-1])) File "/root/CalDEV/Twisted/twisted/python/reflect.py", line 337, in namedModule topLevel = __import__(name) File "/root/CalDEV/CalendarServer/twistedcaldav/__init__.py", line 45, in ? import twistedcaldav.caldavxml File "/root/CalDEV/CalendarServer/twistedcaldav/caldavxml.py", line 97 self.start = parse_date_or_datetime(attributes["start"]) if "start" in attributes else None ^ SyntaxError: invalid syntax ======================================================= Thanking you very much in advance for helping me best regards, Malcom
Hi Thomas, --On June 24, 2009 12:43:10 PM +0200 Thomas <malcom@ioveda.com> wrote:
I build the DCS on a Linux CentOS machine running python 2.5.1 x86_64 everything compiled fine, but when i tried to start the server, i do get the following syntax error:
You need Python 2.6 or higher to run from trunk. That is now a requirement. -- Cyrus Daboo
Hi Cyrus, --On June 24, 2009 8:57:11 AM -0400 Cyrus Daboo <cdaboo@apple.com> wrote:
I build the DCS on a Linux CentOS machine running python 2.5.1 x86_64 everything compiled fine, but when i tried to start the server, i do get the following syntax error:
You need Python 2.6 or higher to run from trunk. That is now a requirement.
Correction - Python 2.5 and up ought to be OK. The error message you sent implied that the "x if b else y" syntax construct (new in Python 2.5) was not recognized. Can you double-check that the server did indeed launch using Python 2.5 and not Python 2.4. -- Cyrus Daboo
participants (2)
-
Cyrus Daboo
-
Thomas