[CalendarServer-dev] [Calendar and Contacts Server] #358: Error running carddav server in Linux

Calendar and Contacts Server trac at macosforge.org
Wed Jan 13 14:56:21 PST 2010


#358: Error running carddav server in Linux
-----------------------------+----------------------------------------------
 Reporter:  dave@…           |       Owner:  wsanchez@…        
     Type:  Defect           |      Status:  new               
 Priority:  5: Not set       |   Milestone:                    
Component:  Calendar Server  |    Severity:  Other             
 Keywords:                   |  
-----------------------------+----------------------------------------------
 When trying to launch the carddav server on a Debian Etch machine with
 ./run, I get the error:

 ImportError: No module named opendirectory

 I've tried commenting out all opendirectory-related resources in carddavd-
 dev.plist, but still get the error.  I understand that there is no
 opendirectory on Linux, but there doesn't seem to be a way of keeping the
 server from trying to load that module.

 Full traceback below.

 exec python /home/dave/Twisted/bin/twistd  -n carddav -f
 /home/dave/ContactsServer/conf/carddavd-dev.plist -o ProcessType=Combined
 Traceback (most recent call last):
   File "/home/dave/Twisted/bin/twistd", line 21, in <module>
     run()
   File "/home/dave/Twisted/twisted/scripts/twistd.py", line 27, in run
     app.run(runApp, ServerOptions)
   File "/home/dave/Twisted/twisted/application/app.py", line 374, in run
     config.parseOptions()
   File "/home/dave/Twisted/twisted/application/app.py", line 354, in
 parseOptions
     usage.Options.parseOptions(self, options)
   File "/home/dave/Twisted/twisted/python/usage.py", line 184, in
 parseOptions
     for (cmd, short, parser, doc) in self.subCommands:
   File "/home/dave/Twisted/twisted/application/app.py", line 365, in
 subCommands
     self.loadedPlugins[plug.tapname] = plug
   File "/home/dave/ContactsServer/twisted/plugins/carddav.py", line 13, in
 getProperty
     return getattr(reflect.namedClass(self.serviceMakerClass), propname)
   File "/home/dave/Twisted/twisted/python/reflect.py", line 347, in
 namedObject
     module = namedModule(string.join(classSplit[:-1], '.'))
   File "/home/dave/Twisted/twisted/python/reflect.py", line 335, in
 namedModule
     topLevel = __import__(name)
   File "/home/dave/ContactsServer/addressbookserver/tap/carddav.py", line
 84, in <module>
     from twistedcaldav.static import AddressBookHomeProvisioningFile,
 DirectoryBackedAddressBookFile
   File "/home/dave/ContactsServer/twistedcaldav/static.py", line 78, in
 <module>
     from twistedcaldav.directory.addressbook import uidsResourceName as
 uidsResourceNameAddressBook
   File "/home/dave/ContactsServer/twistedcaldav/directory/addressbook.py",
 line 45, in <module>
     from twistedcaldav.report_addressbook_findshared import
 getReadWriteSharedAddressBookGroups, getReadOnlySharedAddressBookGroups,
 getWritersGroupForSharedAddressBookGroup
   File
 "/home/dave/ContactsServer/twistedcaldav/report_addressbook_findshared.py",
 line 30, in <module>
     import opendirectory
 ImportError: No module named opendirectory

-- 
Ticket URL: <http://trac.calendarserver.org/ticket/358>
Calendar and Contacts Server </>
HTTP/WebDAV/CalDAV Server


More information about the calendarserver-dev mailing list