after svn up, run -sf ... ---snip--- Starting server... exec python /Users/helge/Developer/Collaboration/Twisted/bin/twistd - n caldav -f /Users/helge/Developer/Collaboration/CalendarServer/conf/ caldavd-dev.plist -o ProcessType=Combined /Users/helge/Developer/Collaboration/CalendarServer/calendarserver/ sidecar/task.py:155: Warning: 'with' will become a reserved keyword in Python 2.6 Traceback (most recent call last): File "/Users/helge/Developer/Collaboration/Twisted/bin/twistd", line 19, in <module> run() File "/Users/helge/Developer/Collaboration/Twisted/twisted/scripts/ twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 689, in run config.parseOptions() File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 669, in parseOptions usage.Options.parseOptions(self, options) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ usage.py", line 226, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 680, in subCommands self.loadedPlugins[plug.tapname] = plug File "/Users/helge/Developer/Collaboration/CalendarServer/twisted/ plugins/caldav.py", line 13, in getProperty return getattr(reflect.namedClass(self.serviceMakerClass), propname) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ reflect.py", line 349, in namedObject module = namedModule('.'.join(classSplit[:-1])) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ reflect.py", line 337, in namedModule topLevel = __import__(name) File "/Users/helge/Developer/Collaboration/CalendarServer/ calendarserver/sidecar/task.py", line 155 with open(self.taskFile) as input: ^ SyntaxError: invalid syntax launchctl bsexec failed: No such file or directory ---snap--- Greets, Helge
Hi Helge, --On July 8, 2009 8:34:22 PM +0200 Helge Heß <me@helgehess.eu> wrote:
File "/Users/helge/Developer/Collaboration/CalendarServer/calendarserver/sidec ar/task.py", line 155 with open(self.taskFile) as input: ^
Looks like new syntax for Python 2.6 sneaked in. We need to fix that and change to something compatible with Python 2.5 since we still plan on supporting that for a while. -- Cyrus Daboo
I just added "from __future__ import with_statement" to task.py to allow python 2.5 to use the "with" statement. On Jul 8, 2009, at 11:34 AM, Helge Heß wrote:
after svn up, run -sf ...
---snip--- Starting server... exec python /Users/helge/Developer/Collaboration/Twisted/bin/twistd -n caldav -f /Users/helge/Developer/Collaboration/CalendarServer/ conf/caldavd-dev.plist -o ProcessType=Combined /Users/helge/Developer/Collaboration/CalendarServer/calendarserver/ sidecar/task.py:155: Warning: 'with' will become a reserved keyword in Python 2.6 Traceback (most recent call last): File "/Users/helge/Developer/Collaboration/Twisted/bin/twistd", line 19, in <module> run() File "/Users/helge/Developer/Collaboration/Twisted/twisted/scripts/ twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 689, in run config.parseOptions() File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 669, in parseOptions usage.Options.parseOptions(self, options) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ usage.py", line 226, in parseOptions for (cmd, short, parser, doc) in self.subCommands: File "/Users/helge/Developer/Collaboration/Twisted/twisted/ application/app.py", line 680, in subCommands self.loadedPlugins[plug.tapname] = plug File "/Users/helge/Developer/Collaboration/CalendarServer/twisted/ plugins/caldav.py", line 13, in getProperty return getattr(reflect.namedClass(self.serviceMakerClass), propname) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ reflect.py", line 349, in namedObject module = namedModule('.'.join(classSplit[:-1])) File "/Users/helge/Developer/Collaboration/Twisted/twisted/python/ reflect.py", line 337, in namedModule topLevel = __import__(name) File "/Users/helge/Developer/Collaboration/CalendarServer/ calendarserver/sidecar/task.py", line 155 with open(self.taskFile) as input: ^ SyntaxError: invalid syntax launchctl bsexec failed: No such file or directory ---snap---
Greets, Helge _______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev
participants (3)
-
Cyrus Daboo
-
Helge Heß
-
Morgen Sagen