Skip to content
This repository has been archived by the owner. It is now read-only.

Still can't run CardDAV server in Linux #294

Closed
macosforgebot opened this issue Mar 8, 2010 · 3 comments
Closed

Still can't run CardDAV server in Linux #294

macosforgebot opened this issue Mar 8, 2010 · 3 comments

Comments

@macosforgebot
Copy link

@macosforgebot macosforgebot commented Mar 8, 2010

dave@… originally submitted this as ticket:367

  • Keywords: carddav, linux
  • Cc: dave@…

Previously ticket 359, but another user responded to that and it got closed.

I finally had a chance to give the latest trunk (5266) of Calendar Server a try. Same server, but it had since been upgraded to Debian Lenny.

I got the same error as listed in ticket 359 after the compile and launch: ImportError: No module named opendirectory

I was able to get the server started by commenting out the following:

twistedcaldav/static.py: from twistedcaldav.directory.principal import DirectoryCalendarPrincipalResource #from twistedcaldav import report_addressbook_findshared #setattr(DirectoryCalendarPrincipalResource, "report_http_addressbookserver_org_nsaddressbook_findshared", report_addressbook_findshared.http_addre\ ssbookserver_org_nsaddressbook_findshared)

twistedcaldav/addressbook.py #from twistedcaldav.report_addressbook_findshared import getReadWriteSharedAddressBookGroups, getReadOnlySharedAddressBookGroups, getWritersGroupForShare\ dAddressBookGroup

And doing a:

mkdir data/Documents/directory

This allows me to not only start the server, but to even log in with Address Book.

However, I get the error:

[carddav-throw] Unable to query user's address book home. User: admin Scheme: https Host: mail.kapor.com Port: 8443 Principal: /principals/uids/{uid}/

When I connect to the web server, it there is nothing listed under Address Book Homes, and it would appear that the /addressbooks/ directory isn't being created for the user.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Mar 9, 2010

guy@… originally submitted this as comment:1:⁠ticket:367


svn co http://svn.calendarserver.org/repository/calendarserver/PyOpenDirectory/trunk PyOpenDirectory
cd PyOpenDirectory
python setup.py build
python setup.py install

will likely solve this for you.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

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

  • Radar deleted
  • Status changed from new to closed
  • Milestone set to CalendarServer-3.1
  • Resolution changed from to Software changed

Building PyOpenDirectory should no longer be required.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

@wsanchez originally submitted this as comment:3:⁠ticket:367

  • Priority changed from 5: Not set to 2: Expected
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.