[CalendarServer-users] In need help installating CalendarServer on OS X Server

Daniel Röwenstrunk roewenstrunk at edirom.de
Thu Apr 19 05:49:41 PDT 2007


Hello everybody!

First of all, i want to say how cool this server is. I was always 
waiting for such kind of server to manage iCal calendars.
My problem now is to install the server on a Mac OS X Server 10.4 with 
all latest updates and Python 2.4 installed.

During the run of "./run -s" i get following error:

...
Applying patches to dateutil in /opt/python-dateutil-1.1...
/opt/CalendarServer/lib-patches/dateutil/setup.patch
patching file setup.py
Hunk #1 FAILED at 3.
Hunk #2 FAILED at 23.
2 out of 2 hunks FAILED -- saving rejects to file setup.py.rej
...

And when i try to start the server anyhow, i get some other errors. I 
have attached a file with the terminal output.
Could you please help me to solve these problems?

Thanks a lot,
    Daniel
-------------- next part --------------
Traceback (most recent call last):
  File "/opt/Twisted/twisted/application/app.py", line 354, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/opt/Twisted/twisted/python/usage.py", line 184, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/opt/Twisted/twisted/application/app.py", line 364, in subCommands
    for plug in plugins:
  File "/opt/Twisted/twisted/plugin.py", line 186, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/opt/Twisted/twisted/plugin.py", line 151, in getCache
    provider = pluginModule.load()
  File "/opt/Twisted/twisted/python/modules.py", line 378, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/opt/Twisted/twisted/python/modules.py", line 614, in moduleLoader
    return self._moduleLoader(modname)
  File "/opt/Twisted/twisted/python/reflect.py", line 361, in namedAny
    topLevelPackage = __import__(trialname)
  File "/opt/Twisted/twisted/plugins/caldav.py", line 1, in ?
    from twistedcaldav.tap import CalDAVServiceMaker
  File "/opt/CalendarServer/twistedcaldav/tap.py", line 58, in ?
    from twistedcaldav.resource import CalDAVResource
  File "/opt/CalendarServer/twistedcaldav/resource.py", line 39, in ?
    from twisted.web2.dav.idav import IDAVPrincipalCollectionResource
exceptions.ImportError: cannot import name IDAVPrincipalCollectionResource
Traceback (most recent call last):
  File "/opt/Twisted/twisted/application/app.py", line 354, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/opt/Twisted/twisted/python/usage.py", line 184, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/opt/Twisted/twisted/application/app.py", line 364, in subCommands
    for plug in plugins:
  File "/opt/Twisted/twisted/plugin.py", line 186, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/opt/Twisted/twisted/plugin.py", line 151, in getCache
    provider = pluginModule.load()
  File "/opt/Twisted/twisted/python/modules.py", line 378, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/opt/Twisted/twisted/python/modules.py", line 614, in moduleLoader
    return self._moduleLoader(modname)
  File "/opt/Twisted/twisted/python/reflect.py", line 361, in namedAny
    topLevelPackage = __import__(trialname)
  File "/opt/Twisted/twisted/plugins/twisted_lore.py", line 4, in ?
    from twisted.lore.scripts.lore import IProcessor
  File "/opt/Twisted/twisted/lore/scripts/lore.py", line 8, in ?
    from twisted.lore import process, indexer, numberer, htmlbook
  File "/opt/Twisted/twisted/lore/process.py", line 7, in ?
    import tree #todo: get rid of this later
  File "/opt/Twisted/twisted/lore/tree.py", line 8, in ?
    from twisted.web import microdom, domhelpers
  File "/opt/Twisted/twisted/web/microdom.py", line 30, in ?
    from twisted.web.sux import XMLParser, ParseError
  File "/opt/Twisted/twisted/web/sux.py", line 23, in ?
    from twisted.internet.protocol import Protocol, FileWrapper
  File "/opt/Twisted/twisted/internet/protocol.py", line 394, in ?
    interfaces.IConsumer)
  File "/opt/Twisted/twisted/python/components.py", line 87, in registerAdapter
    raise ValueError("an adapter (%s) was already registered." % (factory, ))
exceptions.ValueError: an adapter (twisted.internet.protocol.ProtocolToConsumerAdapter) was already registered.
Traceback (most recent call last):
  File "/opt/Twisted/twisted/python/usage.py", line 373, in __str__
    return self.getSynopsis() + '\n' + self.getUsage(width=None)
  File "/opt/Twisted/twisted/python/usage.py", line 407, in getUsage
    for (cmd, short, parser, desc) in self.subCommands:
  File "/opt/Twisted/twisted/application/app.py", line 364, in subCommands
    for plug in plugins:
  File "/opt/Twisted/twisted/plugin.py", line 186, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/opt/Twisted/twisted/plugin.py", line 151, in getCache
    provider = pluginModule.load()
  File "/opt/Twisted/twisted/python/modules.py", line 378, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/opt/Twisted/twisted/python/modules.py", line 614, in moduleLoader
    return self._moduleLoader(modname)
  File "/opt/Twisted/twisted/python/reflect.py", line 361, in namedAny
    topLevelPackage = __import__(trialname)
  File "/opt/Twisted/twisted/plugins/caldav.py", line 1, in ?
    from twistedcaldav.tap import CalDAVServiceMaker
  File "/opt/CalendarServer/twistedcaldav/__init__.py", line 61, in ?
    import twistedcaldav.customxml
  File "/opt/CalendarServer/twistedcaldav/customxml.py", line 28, in ?
    from twisted.web2.dav.resource import twisted_dav_namespace
  File "/opt/Twisted/twisted/web2/dav/resource.py", line 51, in ?
    from twisted.web2.http import HTTPError, RedirectResponse, StatusResponse
  File "/opt/Twisted/twisted/web2/http.py", line 462, in ?
    components.registerAdapter(compat.makeOldRequestAdapter, iweb.IRequest, iweb.IOldRequest)
  File "/opt/Twisted/twisted/python/components.py", line 87, in registerAdapter
    raise ValueError("an adapter (%s) was already registered." % (factory, ))
exceptions.ValueError: an adapter (<function makeOldRequestAdapter at 0x1350270>) was already registered.
Traceback (most recent call last):
  File "/opt/Twisted/twisted/python/usage.py", line 373, in __str__
    return self.getSynopsis() + '\n' + self.getUsage(width=None)
  File "/opt/Twisted/twisted/python/usage.py", line 407, in getUsage
    for (cmd, short, parser, desc) in self.subCommands:
  File "/opt/Twisted/twisted/application/app.py", line 364, in subCommands
    for plug in plugins:
  File "/opt/Twisted/twisted/plugin.py", line 186, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/opt/Twisted/twisted/plugin.py", line 151, in getCache
    provider = pluginModule.load()
  File "/opt/Twisted/twisted/python/modules.py", line 378, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/opt/Twisted/twisted/python/modules.py", line 614, in moduleLoader
    return self._moduleLoader(modname)
  File "/opt/Twisted/twisted/python/reflect.py", line 361, in namedAny
    topLevelPackage = __import__(trialname)
  File "/opt/Twisted/twisted/plugins/twisted_lore.py", line 4, in ?
    from twisted.lore.scripts.lore import IProcessor
  File "/opt/Twisted/twisted/lore/scripts/lore.py", line 8, in ?
    from twisted.lore import process, indexer, numberer, htmlbook
  File "/opt/Twisted/twisted/lore/process.py", line 7, in ?
    import tree #todo: get rid of this later
  File "/opt/Twisted/twisted/lore/tree.py", line 8, in ?
    from twisted.web import microdom, domhelpers
  File "/opt/Twisted/twisted/web/microdom.py", line 30, in ?
    from twisted.web.sux import XMLParser, ParseError
  File "/opt/Twisted/twisted/web/sux.py", line 23, in ?
    from twisted.internet.protocol import Protocol, FileWrapper
  File "/opt/Twisted/twisted/internet/protocol.py", line 394, in ?
    interfaces.IConsumer)
  File "/opt/Twisted/twisted/python/components.py", line 87, in registerAdapter
    raise ValueError("an adapter (%s) was already registered." % (factory, ))
exceptions.ValueError: an adapter (twisted.internet.protocol.ProtocolToConsumerAdapter) was already registered.
Usage: twistd [options]
Options:
      --savestats        save the Stats object rather than the text output of
                         the profiler.
  -o, --no_save          do not save state on shutdown
  -e, --encrypted        The specified tap/aos/xml file is encrypted.
      --nothotshot       Don't use the 'hotshot' profiler even if it's
                         available.
  -n, --nodaemon         don't daemonize
  -q, --quiet            No-op for backwards compatability.
      --originalname     Don't try to change the process name
      --syslog           Log to syslog, not to file
      --euid             Set only effective user-id rather than real user-id.
                         (This option has no effect unless the server is running
                         as root, in which case it means not to shed all
                         privileges after binding ports, retaining the option to
                         regain privileges in cases such as spawning processes.
                         Use with caution.)
  -l, --logfile=         log to a specified file, - for stdout
  -p, --profile=         Run in profile mode, dumping results to specified file
  -f, --file=            read the given .tap file [default: twistd.tap]
  -y, --python=          read an application from within a Python file (implies
                         -o)
  -x, --xml=             Read an application from a .tax file (Marmalade
                         format).
  -s, --source=          Read an application from a .tas file (AOT format).
  -d, --rundir=          Change to a supplied directory before running [default:
                         .]
      --report-profile=  E-mail address to use when reporting dynamic execution
                         profiler stats. This should not be combined with other
                         profiling options. This will only take effect if the
                         application to be run has an application name.
      --prefix=          use the given prefix when syslogging [default: twisted]
      --pidfile=         Name of the pidfile [default: twistd.pid]
      --chroot=          Chroot to a supplied directory before running
  -u, --uid=             The uid to run as.
  -g, --gid=             The gid to run as.
      --help-reactors    Display a list of possibly available reactor names.
      --version          Print version information and exit.
      --spew             Print an insanely verbose log of everything that
                         happens. Useful when debugging freezes or locks in
                         complex code.
  -b, --debug            run the application in the Python Debugger (implies
                         nodaemon), sending SIGUSR2 will drop into debugger
  -r, --reactor=         Which reactor to use (see --help-reactors for a list of
                         possibilities)
      --help             Display this help and exit.
Commands:
    web2             An HTTP/1.1 web server that can serve from a filesystem or
                     application resource.
    ftp              An FTP server.
    telnet           A simple, telnet-based remote debugging service.
    socks            A SOCKSv4 proxy service.
    manhole-old      An interactive remote debugger service.
    portforward      A simple port-forwarder.
    web              A general-purpose web server which can serve from a
                     filesystem or application resource.
    inetd            An inetd(8) replacement.
    news             A news server.
    words            A modern words server
    toc              An AIM TOC service.
    dns              A domain name server.
    mail             An email service
    manhole          An interactive remote debugger service accessible via
                     telnet and ssh and providing syntax coloring and basic line
                     editing functionality.
    conch            A Conch SSH service.

/opt/Twisted/bin/twistd: Unknown command: caldav
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/logging/__init__.py", line 1328, in shutdown
    for h in _handlerList[:]: # was _handlers.keys():
TypeError: unsubscriptable object
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/logging/__init__.py", line 1328, in shutdown
    for h in _handlerList[:]: # was _handlers.keys():
TypeError: unsubscriptable object
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/logging/__init__.py", line 1328, in shutdown
    for h in _handlerList[:]: # was _handlers.keys():
TypeError: unsubscriptable object
-------------- next part --------------
A non-text attachment was scrubbed...
Name: roewenstrunk.vcf
Type: text/x-vcard
Size: 384 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20070419/2af436a1/roewenstrunk.vcf


More information about the calendarserver-users mailing list