apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

Linux: 'f' is a bad directive in format '%Y-%m-%d %H:%M:%S.%f' #347

Closed macosforgebot closed 13 years ago

macosforgebot commented 13 years ago

guy@… originally submitted this as ticket:445


Pulled revision 7423, on a centos 5 system..

when attempting to connect from ical on my OSX-10.6 system I'm seeing the following errors..the iCal reports and error and remains off-line

2011-05-10 09:38:32+0100 [-] [caldav-0] [PooledMemCacheProtocol,client] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.ValueError'>: 'f' is a bad directive in format '%Y-%m-%d %H:%M:%S.%f' 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:893:_inlineCallbacks 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/twext/web2/resource.py:108:renderHTTP 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/twistedcaldav/resource.py:1466:checkPreconditions 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:1014:unwindGenerator 2011-05-10 09:38:32+0100 [-] [caldav-0] --- <exception caught here> --- 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:893:_inlineCallbacks 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/twext/web2/static.py:109:checkPreconditions 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/twistedcaldav/storebridge.py:316:lastModified 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/txdav/common/datastore/sql.py:2026:modified 2011-05-10 09:38:32+0100 [-] [caldav-0] /home/build/CalendarServer/twistedcaldav/dateops.py:252:parseSQLTimestamp 2011-05-10 09:38:32+0100 [-] [caldav-0] /usr/lib/python2.5/_strptime.py:300:strptime 2011-05-10 09:38:32+0100 [-] [caldav-0] ]

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:1:⁠ticket:445


Copy of initial comment with sane formatting

2011-05-10 09:38:32+0100 [-] [caldav-0]  [PooledMemCacheProtocol,client] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.ValueError'>: 'f' is a bad directive in format '%Y-%m-%d %H:%M:%S.%f'
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:893:_inlineCallbacks
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/twext/web2/resource.py:108:renderHTTP
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/twistedcaldav/resource.py:1466:checkPreconditions
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:1014:unwindGenerator
2011-05-10 09:38:32+0100 [-] [caldav-0]         --- <exception caught here> ---
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/Twisted/build/lib.linux-i686-2.5/twisted/internet/defer.py:893:_inlineCallbacks
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/twext/web2/static.py:109:checkPreconditions
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/twistedcaldav/storebridge.py:316:lastModified
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/txdav/common/datastore/sql.py:2026:modified
2011-05-10 09:38:32+0100 [-] [caldav-0]         /home/build/CalendarServer/twistedcaldav/dateops.py:252:parseSQLTimestamp
2011-05-10 09:38:32+0100 [-] [caldav-0]         /usr/lib/python2.5/_strptime.py:300:strptime
2011-05-10 09:38:32+0100 [-] [caldav-0]         ]
macosforgebot commented 13 years ago

mail@… originally submitted this as comment:2:⁠ticket:445


This has been reported before on the mailing list. See http://www.mail-archive.com/calendarserver-users@lists.macosforge.org/msg01689.html.

Citing from there this has been added with python 2.6. See http://docs.python.org/whatsnew/2.6.html

I am not sure what the official support of python 2.5 currently is.

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:3:⁠ticket:445


Allowing code that requires python 2.6 is not allowed according to http://trac.calendarserver.org/wiki/HACKING

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:445


Fixes (perhaps the lame way) by requiring Python 2.6 in r7841.