OpenDirectory error on PPC-miniMac running OS X 10.5.8
Hi all, I am trying to run CalDav server on a PPC mini Mac running 10.5.8. I also installed xcode314_2809_developerdvd. I get the following errors running the server. The server starts up fine, but then throws these errors. 2011-01-11 19:39:48+0000 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('./data/Logs/state/caldavd.sock') PEER:UNIXAddress('')) 2011-01-11 19:39:48+0000 [-] [caldav-0] [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('./data/Logs/state/caldavd.sock')) 2011-01-11 19:39:48+0000 [-] [caldav-1] [-] Unhandled Error 2011-01-11 19:39:48+0000 [-] [caldav-1] Traceback (most recent call last): 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/base.py", line 413, in fireEvent 2011-01-11 19:39:48+0000 [-] [caldav-1] DeferredList(beforeResults).addCallback(self._continueFiring) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py", line 260, in addCallback 2011-01-11 19:39:48+0000 [-] [caldav-1] callbackKeywords=kw) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py", line 249, in addCallbacks 2011-01-11 19:39:48+0000 [-] [caldav-1] self._runCallbacks() 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py", line 441, in _runCallbacks 2011-01-11 19:39:48+0000 [-] [caldav-1] self.result = callback(self.result, *args, **kw) 2011-01-11 19:39:48+0000 [-] [caldav-1] --- <exception caught here> --- 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/base.py", line 426, in _continueFiring 2011-01-11 19:39:48+0000 [-] [caldav-1] callable(*args, **kwargs) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/CalendarServer/twistedcaldav/directorybackeda ddressbook.py", line 90, in provisionDirectory 2011-01-11 19:39:48+0000 [-] [caldav-1] self.directory = directoryClass(params) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/CalendarServer/twistedcaldav/directory/opendi rectorybacker.py", line 76, in __init__ 2011-01-11 19:39:48+0000 [-] [caldav-1] self._actuallyConfigure(**params) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/CalendarServer/twistedcaldav/directory/opendi rectorybacker.py", line 128, in _actuallyConfigure 2011-01-11 19:39:48+0000 [-] [caldav-1] self.odModule = namedModule(config.OpenDirectoryModule) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /python/reflect.py", line 339, in namedModule 2011-01-11 19:39:48+0000 [-] [caldav-1] topLevel = __import__(name) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/CalendarServer/calendarserver/platform/darwin /od/opendirectory.py", line 21, in <module> 2011-01-11 19:39:48+0000 [-] [caldav-1] import odframework 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/Users/lounge/CalendarServer/CalendarServer/calendarserver/platform/darwin /od/odframework.py", line 6, in <module> 2011-01-11 19:39:48+0000 [-] [caldav-1] "/System/Library/Frameworks/OpenDirectory.framework"), 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python /PyObjC/objc/_dyld.py", line 146, in pathForFramework 2011-01-11 19:39:48+0000 [-] [caldav-1] fpath, name, version = infoForFramework(dyld_find(path)) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python /PyObjC/objc/_dyld.py", line 141, in dyld_find 2011-01-11 19:39:48+0000 [-] [caldav-1] return dyld_framework(filename, framework_name, version) 2011-01-11 19:39:48+0000 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python /PyObjC/objc/_dyld.py", line 88, in dyld_framework 2011-01-11 19:39:48+0000 [-] [caldav-1] raise ImportError("Framework %s could not be found" % (framework_name,)) 2011-01-11 19:39:48+0000 [-] [caldav-1] exceptions.ImportError: Framework OpenDirectory could not be found If somebody, a lot smarter than me, could shed some light there....., please. Kind Regards Florian Baeumler
On Jan 11, 2011, at 12:40 PM, Florian Baeumler wrote:
Hi all, I am trying to run CalDav server on a PPC mini Mac running 10.5.8. I also installed xcode314_2809_developerdvd. I get the following errors running the server. The server starts up fine, but then throws these errors.
2011-01-11 19:39:48+0000 [-] [caldav-1] raise ImportError("Framework %s could not be found" % (framework_name,)) 2011-01-11 19:39:48+0000 [-] [caldav-1] exceptions.ImportError: Framework OpenDirectory could not be found
If somebody, a lot smarter than me, could shed some light there....., please.
Kind Regards
Florian Baeumler
I just made a change in trunk... https://trac.calendarserver.org/changeset/6727/CalendarServer/trunk ...so that the PyOpenDirectory module is used on older systems. Give that a try.
Thank you that cleared this error, but now I am stuck here..... 2011-01-11 22:33:36+0000 [-] [caldav-1] [HTTPChannel,18,10.0.0.20] [twext.web2.server#info] PROPFIND /calendars/__uids__/admin/calendar/ HTTP/1.1 2011-01-11 22:33:36+0000 [-] [caldav-1] [Uninitialized] [twext.web2.server#info] Exception rendering: 2011-01-11 22:33:36+0000 [-] [caldav-1] [Uninitialized] [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-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py:893:_inlineCallbacks 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/CalendarServer/twext/web2/resource.py:108:ren derHTTP 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/CalendarServer/twistedcaldav/resource.py:1386 :checkPreconditions 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py:1014:unwindGenerator 2011-01-11 22:33:36+0000 [-] [caldav-1] --- <exception caught here> --- 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/Twisted/build/lib.macosx-10.5-ppc-2.5/twisted /internet/defer.py:893:_inlineCallbacks 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/CalendarServer/twext/web2/static.py:109:check Preconditions 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/CalendarServer/twistedcaldav/storebridge.py:2 88:lastModified 2011-01-11 22:33:36+0000 [-] [caldav-1] /Users/lounge/CalendarServer/CalendarServer/txdav/common/datastore/sql.py: 1392:modified 2011-01-11 22:33:36+0000 [-] [caldav-1] /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_st rptime.py:321:strptime 2011-01-11 22:33:36+0000 [-] [caldav-1] ] Any ideas what is going there. Also iCal throws this error.... The server responded with ³HTTP/1.1 500 Internal Server Error² to operation CalDAVAccountRefreshQueueableOperation. Kind Regards Florian Baeumler On 11/01/2011 21:38, "Morgen Sagen" <sagen@apple.com> wrote:
On Jan 11, 2011, at 12:40 PM, Florian Baeumler wrote:
Hi all, I am trying to run CalDav server on a PPC mini Mac running 10.5.8. I also installed xcode314_2809_developerdvd. I get the following errors running the server. The server starts up fine, but then throws these errors.
2011-01-11 19:39:48+0000 [-] [caldav-1] raise ImportError("Framework %s could not be found" % (framework_name,)) 2011-01-11 19:39:48+0000 [-] [caldav-1] exceptions.ImportError: Framework OpenDirectory could not be found
If somebody, a lot smarter than me, could shed some light there....., please.
Kind Regards
Florian Baeumler
I just made a change in trunk...
https://trac.calendarserver.org/changeset/6727/CalendarServer/trunk
...so that the PyOpenDirectory module is used on older systems. Give that a try.
On Jan 11, 2011, at 4:38 PM, Florian Baeumler wrote:
<type 'exceptions.ValueError'>: 'f' is a bad directive in format '%Y-%m-%d %H:%M:%S.%f'
The %f format code was added to Python's strftime() in 2.6: http://docs.python.org/whatsnew/2.6.html Mac OS X 10.5 shipped with Python 2.5. Installing Python 2.6 or better will fix this issue. -- Ben
Thank you Ben, I upgraded to Python 2.7.1 and tried to run ./run -s again, but it quit with the following errors; Building Zope Interface... Building PyXML... extensions/sgmlop.c:715: warning: initialization from incompatible pointer type extensions/sgmlop.c:718: warning: 'intargfunc' is deprecated extensions/sgmlop.c:718: warning: initialization from incompatible pointer type extensions/sgmlop.c:715: warning: initialization from incompatible pointer type extensions/sgmlop.c:718: warning: 'intargfunc' is deprecated extensions/sgmlop.c:718: warning: initialization from incompatible pointer type Building PyOpenSSL... /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/d ist.py:267: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg) Building PyKerberos... Building PyOpenDirectory... src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationBasicToNode(const char*, const char*, const char*)': src/CDirectoryServiceAuth.cpp:219: error: '::dsFillAuthBuffer' has not been declared src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationBasicToNode(const char*, const char*, const char*)': src/CDirectoryServiceAuth.cpp:219: error: '::dsFillAuthBuffer' has not been declared src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationDigestToNode(const char*, const char*, const char*, const char*, const char*)': src/CDirectoryServiceAuth.cpp:306: error: '::dsFillAuthBuffer' has not been declared src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationSASLDigestToNode(const char*, const char*, const char*, const __CFString**)': src/CDirectoryServiceAuth.cpp:393: error: '::dsFillAuthBuffer' has not been declared src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationDigestToNode(const char*, const char*, const char*, const char*, const char*)': src/CDirectoryServiceAuth.cpp:306: error: '::dsFillAuthBuffer' has not been declared src/CDirectoryServiceAuth.cpp: In member function 'bool CDirectoryServiceAuth::NativeAuthenticationSASLDigestToNode(const char*, const char*, const char*, const __CFString**)': src/CDirectoryServiceAuth.cpp:393: error: '::dsFillAuthBuffer' has not been declared lipo: can't figure out the architecture type of: /var/tmp//ccpnNs43.out error: command 'gcc-4.0' failed with exit status 1 And again, any help greatly appreciated..... Kind Regards Florian Baeumler On 11/01/2011 23:16, "Ben Gollmer" <bgollmer@tcnetworks.com> wrote:
Content preview: On Jan 11, 2011, at 4:38 PM, Florian Baeumler wrote: > <type
'exceptions.ValueError'>: 'f' is a bad directive in format '%Y-%m-%d
%H:%M:%S.%f' The %f format code was added to Python's strftime() in 2.6: [...]
Content analysis details: (-0.0 points, 5.0 required)
pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record
On Jan 11, 2011, at 4:38 PM, Florian Baeumler wrote:
<type 'exceptions.ValueError'>: 'f' is a bad directive in format '%Y-%m-%d %H:%M:%S.%f'
The %f format code was added to Python's strftime() in 2.6:
http://docs.python.org/whatsnew/2.6.html
Mac OS X 10.5 shipped with Python 2.5. Installing Python 2.6 or better will fix this issue.
-- Ben
participants (3)
-
Ben Gollmer
-
Florian Baeumler
-
Morgen Sagen