On 20/01/16 18:38, Rahul Amaram wrote: >> (g) I also need to edit >> /usr/lib/python2.7/dist-packages/CalendarServer-7.0a1+unknown.egg-info/requires.txt >> and remove the line that says "kerberos" (I am not using it anyway). >> Probably we need to remove that from setup.py in the source package. > What does this break? >>
This breaks calendarserver_upgrade, and I think all of the other calendarserver_* utility scripts too. They fail like this: $ sudo -u caldavd -g caldavd calendarserver_upgrade -D -s Traceback (most recent call last): File "/usr/bin/calendarserver_upgrade", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3138, in <module> @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3124, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 661, in _build_master ws.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 962, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'kerberos' distribution was not found and is required by CalendarServer 1 The error also goes away if you replace "kerberos" with "pykerberos", since that is the Name: defined in /usr/lib/python2.7/dist-packages/pykerberos-1.1.5.egg-info/PKG-INFO and so pkg_resources *can* find it. However, I am not sure if this is the correct fix. (Perhaps there are two python kerberos libraries or something, I haven't checked. We should probably consult upstream on this.) X -- GPG: 4096R/1318EFAC5FBBDBCE git://github.com/infinity0/pubkeys.git