collective/collective.xmpp.chat — pull request #17 by ShuffleBox (2014-08-29 19:05:42+00:00)
Title: Correct buildout error: A 0.7-series setuptools cannot be installed with distribute.

I ran into the issue below, while running buildout on a vanilla Plone 4.3.3 site with collective.xmpp.chat/core. Updating the version of distribute called by distribute_setup.py from 0.6.34 to 0.6.49 (latest in the 0.6.x line) has corrected the issue.

Getting distribution for 'collective.xmpp.chat'.
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
Extracting in /var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln
Now working in /var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34
Building a Distribute egg in /private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1
Traceback (most recent call last):
File "setup.py", line 45, in
exec(init_file.read(), d)
File "", line 8, in
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/setuptools/__init__.py", line 2, in
from setuptools.extension import Extension, Library
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/setuptools/extension.py", line 5, in
from setuptools.dist import _get_unpatched
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/setuptools/dist.py", line 6, in
from setuptools.command.install import install
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/setuptools/command/__init__.py", line 8, in
from setuptools.command import install_scripts
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/setuptools/command/install_scripts.py", line 3, in
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/pkg_resources.py", line 2823, in
add_activation_listener(lambda dist: dist.activate())
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/pkg_resources.py", line 710, in subscribe
callback(dist)
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/pkg_resources.py", line 2823, in
add_activation_listener(lambda dist: dist.activate())
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/pkg_resources.py", line 2255, in activate
self.insert_on(path)
File "/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/temp/tmpT70Nln/distribute-0.6.34/pkg_resources.py", line 2356, in insert_on
"with distribute. Found one at %s" % str(self.location))
ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /Users/garret/xmpptest/Vanilla/buildout-cache/eggs/setuptools-0.7.2-py2.7.egg
/private/var/folders/v_/439fk7756s552r4wwc49zzm80000gn/T/easy_install-pN1S5L/collective.xmpp.chat-0.3.1/distribute-0.6.34-py2.7.egg
error: None
An error occurred when trying to install collective.xmpp.chat 0.3.1. Look above this message for any errors that were output by easy_install.