[CalendarServer-users] Installing CalendarServer-2.3 fails w/ Python error

Richard Cobbe cobbe at ccs.neu.edu
Sun Dec 6 08:01:17 PST 2009


I'm trying to install CalendarServer-2.3 from source on a machine running
MacOS X 10.5.8-client (Intel).  I'm following the instructions at
<http://www.mail-archive.com/calendarserver-users@lists.macosforge.org/msg01315.html>,
which have worked for me in the past, but I'm getting a python error during
the installation process.

What I'm doing, in brief:

  - svn checkout .../tags/release/CalendarServer-2.3
  - cd CalendarServer
  - ./run -s
  - edit conf/caldavd.plist, conf/caldavd-apple.plist, and
    twistedcaldav/config.py.  Change all references to files in /var/run to
    look for them in /var/run/caldavd instead.
  - ./run -i /tmp/caldavd

As near as I can tell, the error happens when this last command is trying
to install Twisted.  The relevant bits of the output follow:

    creating Twisted.egg-info
    writing requirements to Twisted.egg-info/requires.txt
    writing Twisted.egg-info/PKG-INFO
    writing top-level names to Twisted.egg-info/top_level.txt
    writing dependency_links to Twisted.egg-info/dependency_links.txt
    writing manifest file 'Twisted.egg-info/SOURCES.txt'
    Traceback (most recent call last):
      File "./setup.py", line 97, in <module>
        main(sys.argv[1:])
      File "./setup.py", line 92, in main
        setup(**setup_args)
      File "./twisted/python/dist.py", line 47, in setup
        return core.setup(**get_setup_args(**kw))
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands
        self.run_command(cmd)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
        cmd_obj.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install.py", line 56, in run
        return _install.run(self)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/install.py", line 516, in run
        self.run_command('build')
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command
        self.distribution.run_command(command)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
        cmd_obj.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py", line 112, in run
        self.run_command(cmd_name)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command
        self.distribution.run_command(command)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
        cmd_obj.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py", line 31, in run
        self.build_package_data()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py", line 76, in build_package_data
        for package, src_dir, build_dir, filenames in self.data_files:
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py", line 39, in __getattr__
        self.data_files = files = self._get_data_files(); return files
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py", line 44, in _get_data_files
        self.analyze_manifest()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py", line 92, in analyze_manifest
        self.run_command('egg_info')
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command
        self.distribution.run_command(command)
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
        cmd_obj.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.py", line 171, in run
        self.find_sources()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.py", line 252, in find_sources
        mm.run()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.py", line 306, in run
        self.add_defaults()
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.py", line 333, in add_defaults
        rcfiles = list(walk_revctrl())
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/sdist.py", line 45, in walk_revctrl
        for item in ep.load()(dirname):
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/sdist.py", line 52, in _default_revctrl
        for path in finder(dirname,path):
      File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/sdist.py", line 98, in entries_finder
        log.warn("unrecognized .svn/entries format in %s", dirname)
    NameError: global name 'log' is not defined

If that's not enough context, I do have a complete transcript of the build
attempt, so I can provide more detail as necessary.

Since 2.3 isn't working, I tried starting over with CalendarServer-2.2, and
I've been able to get that to build, so this is clearly caused by something
that's changed in the interim.

If it matters, I *do* have both python 2.5 and 2.6 installed via Fink, in
/sw, and I was running the installation process in an environment where the
PATH contains /sw/bin etc.; I don't know if that might be interfering.

I can live with 2.2, but I've been having some mild problems with it, so
it'd be nice to get 2.3 working to see if that fixes them.

Is this a problem on my end, or do I need to wait for the next point
release?  (I'm a little leery of running straight from trunk, but if
someone can convince me that this is safe, I'm open to the possibility.)

Thanks,

Richard


More information about the calendarserver-users mailing list