apple / ccs-calendarserver

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

ImportError: No module named plistlib #290

Closed macosforgebot closed 14 years ago

macosforgebot commented 14 years ago

guy@… originally submitted this as ticket:363


Reported in #⁠359:

Starting server...
exec python /root/Twisted/bin/twistd  -n caldav -f /root/calCardDAV/conf/caldavd-dev.plist -o ProcessType=Combined 
Traceback (most recent call last):
  File "/root/Twisted/bin/twistd", line 19, in <module>
    run()
  File "/root/Twisted/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/root/Twisted/twisted/application/app.py", line 688, in run
    config.parseOptions()
  File "/root/Twisted/twisted/application/app.py", line 668, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/root/Twisted/twisted/python/usage.py", line 226, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/root/Twisted/twisted/application/app.py", line 679, in subCommands
    self.loadedPlugins[plug.tapname] = plug
  File "/root/calCardDAV/twisted/plugins/caldav.py", line 29, in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
  File "/root/Twisted/twisted/python/reflect.py", line 349, in namedObject
    module = namedModule('.'.join(classSplit[:-1]))
  File "/root/Twisted/twisted/python/reflect.py", line 337, in namedModule
    topLevel = __import__(name)
  File "/root/calCardDAV/calendarserver/sidecar/task.py", line 45, in <module>
    from calendarserver.util import getRootResource
  File "/root/calCardDAV/calendarserver/util.py", line 48, in <module>
    from twistedcaldav.static import CalendarHomeProvisioningFile
  File "/root/calCardDAV/twistedcaldav/static.py", line 83, in <module>
    from twistedcaldav.directory.addressbook import uidsResourceName as uidsResourceNameAddressBook
  File "/root/calCardDAV/twistedcaldav/directory/addressbook.py", line 45, in <module>
    from twistedcaldav.report_addressbook_findshared import getReadWriteSharedAddressBookGroups, getReadOnlySharedAddressBookGroups, getWritersGroupForSharedAddressBookGroup
  File "/root/calCardDAV/twistedcaldav/report_addressbook_findshared.py", line 29, in <module>
    from plistlib import readPlist
ImportError: No module named plistlib
macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:1:⁠ticket:363


plistlib is in Python 2.6. We should be importing twext.python.plistlib, which handles this, instead.

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:363


Fixed in r5217