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

Calendar and Contacts Server trac at macosforge.org
Mon Aug 1 15:41:14 PDT 2011


#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:                   |       Radar:                    
-----------------------------+----------------------------------------------
Description changed by wsanchez@…:

Old description:

> 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

New description:

 When trying to launch the carddav server on a Debian Etch machine with
 ./run, I get the error:

 {{{
 ImportError: No module named open directory
 }}}

 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 open directory
 }}}

--

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


More information about the calendarserver-dev mailing list