apple / ccs-calendarserver

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

Missing kerberos module #280

Closed macosforgebot closed 15 years ago

macosforgebot commented 15 years ago

cweger@… originally submitted this as ticket:352


Following the build instructions on the wiki page, I successfully built the GUI app. Launching this app results in an immediate error dialog:

ImportError: No module named kerberos

I'm not a python person, so it's possible I've done something stupid to cause this error.

macosforgebot commented 15 years ago

cweger@… originally submitted this as comment:1:⁠ticket:352


Replying to cweger@…:

Following the build instructions on the wiki page, I successfully built the GUI app. Launching this app results in an immediate error dialog:

ImportError: No module named kerberos

I'm not a python person, so it's possible I've done something stupid to cause this error.

Fixed by following the instructions to build kerberos at:

http://www.nabble.com/Kerberos-import-error-with-CalDAVClientLibrary-td25465950.html

Then copying the kerberos.so file from the build directory into the WebDAVBrowser.app/Contents/Resources/lib/python2.5/lib-dynload directory There's probably a more pythonesque way of doing this, but this seemed to work.

macosforgebot commented 15 years ago

@cyrusdaboo originally submitted this as comment:2:⁠ticket:352


You need to make sure your PYTHONPATH env variable includes the kerberos module.

Also, in r4665 I have made the kerberos import conditional - i.e. the tool won't fail if kerberos is not present - it will run with kerberos disabled.