Re: [Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?)
On 13/07/2013 17:37, Jason R. Coombs wrote: It looks like something is trying to install Setuptools 0.7.2, possibly with a temporary version of distribute or one that's not visible by default in your Python environment. That would have been buildout's bootstrap.py. Jim, is this fixed in the latest 1 and 2 bootstrap.pys? When you get that error message, I suggest you upgrade away from distribute. The problem is that this is the stable python-pkg-resources in Debian, so likely Ubuntu to. This problem has the potential to affect many many users so I hope a sensible story is being developed to deal with it... The easiest way to do this if you have distribute installed is to 'easy_install -U distribute', which will grab distribute 0.7.3 and install setuptools=0.7. What's the OS-packages plan for dealing with this? I would consider doing the above to an OS-installed package to be pretty anti-social... I hope that helps. Please report back if that doesn't get you going. I fixed it before you replied, but it was pretty horrific: aptitude remove python-pkg-resources aptitude remove python-pkg-resources python-bzrlib python-pygments aptitude remove python-pkg-resources bzr python-bzrlib python-pygments aptitude remove python-pkg-resources bzr bzr-svn python-docutils python-bzrlib python-pygments ...which removed a lot of packages. I'm in a position where I can manage that, but I'd imagine a civilian user could end up in a lot of trouble. Also, don't forget the weird and crappy setuptools versions that Apple will have baked in to the various Pythons that ship with the various Mac OS's. While this merge is a good thing, it's causing a lot of pain from what I've heard and experienced. Chris Regards, Jason -Original Message- From: Distutils-SIG [mailto:distutils-sig- bounces+jaraco=jaraco@python.org] On Behalf Of Chris Withers Sent: Sunday, 07 July, 2013 03:09 To: distutils sig Subject: [Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?) Hi All, What is this exception trying to tell me? Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools- 0.7.2.tar.gz Extracting in /tmp/tmpJNVsOY Now working in /tmp/tmpJNVsOY/setuptools-0.7.2 Building a Setuptools egg in /tmp/tmpBLZGeg /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg Traceback (most recent call last): File bootstrap.py, line 91, in module pkg_resources.working_set.add_entry(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 451, in add_entry self.add(dist, entry, False) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 542, in add self._added_new(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 705, in _added_new callback(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2727, in lambda add_activation_listener(lambda dist: dist.activate()) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2227, in activate self.insert_on(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2328, 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 /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg I don't see any distribute in there, and I don't know where it might be... $ python2.6 Python 2.6.8 (unknown, Jan 29 2013, 10:05:44) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. import setuptools Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named setuptools cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?)
Hi Chris, It looks like something is trying to install Setuptools 0.7.2, possibly with a temporary version of distribute or one that's not visible by default in your Python environment. When you get that error message, I suggest you upgrade away from distribute. The easiest way to do this if you have distribute installed is to 'easy_install -U distribute', which will grab distribute 0.7.3 and install setuptools=0.7. If this doesn't work (as it may not if you in fact don't have Distribute), you may be able to pro-actively avoid the problem by installing the latest Setuptools (0.9 at the time of this writing) using the published installation instructions: https://pypi.python.org/pypi/setuptools/0.9 I hope that helps. Please report back if that doesn't get you going. Regards, Jason -Original Message- From: Distutils-SIG [mailto:distutils-sig- bounces+jaraco=jaraco@python.org] On Behalf Of Chris Withers Sent: Sunday, 07 July, 2013 03:09 To: distutils sig Subject: [Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?) Hi All, What is this exception trying to tell me? Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools- 0.7.2.tar.gz Extracting in /tmp/tmpJNVsOY Now working in /tmp/tmpJNVsOY/setuptools-0.7.2 Building a Setuptools egg in /tmp/tmpBLZGeg /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg Traceback (most recent call last): File bootstrap.py, line 91, in module pkg_resources.working_set.add_entry(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 451, in add_entry self.add(dist, entry, False) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 542, in add self._added_new(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 705, in _added_new callback(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2727, in lambda add_activation_listener(lambda dist: dist.activate()) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2227, in activate self.insert_on(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2328, 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 /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg I don't see any distribute in there, and I don't know where it might be... $ python2.6 Python 2.6.8 (unknown, Jan 29 2013, 10:05:44) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. import setuptools Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named setuptools cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig smime.p7s Description: S/MIME cryptographic signature ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
[Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?)
Hi All, What is this exception trying to tell me? Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-0.7.2.tar.gz Extracting in /tmp/tmpJNVsOY Now working in /tmp/tmpJNVsOY/setuptools-0.7.2 Building a Setuptools egg in /tmp/tmpBLZGeg /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg Traceback (most recent call last): File bootstrap.py, line 91, in module pkg_resources.working_set.add_entry(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 451, in add_entry self.add(dist, entry, False) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 542, in add self._added_new(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 705, in _added_new callback(dist) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2727, in lambda add_activation_listener(lambda dist: dist.activate()) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2227, in activate self.insert_on(path) File /usr/lib/python2.6/dist-packages/pkg_resources.py, line 2328, 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 /tmp/tmpBLZGeg/setuptools-0.7.2-py2.6.egg I don't see any distribute in there, and I don't know where it might be... $ python2.6 Python 2.6.8 (unknown, Jan 29 2013, 10:05:44) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. import setuptools Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named setuptools cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/07/2013 03:08 AM, Chris Withers wrote: I don't see any distribute in there, and I don't know where it might be... 'pkg_resources' (/usr/lib/python2.6/dist-packages/pkg_resources.py) comes from either setuptools or distribute -- in your case, distribute (probably via a 'python-distribute' Debian package, given that path). Either you need to get that system pacakge updated, or else removed, or else insulate yourself from it (e.g., with a 'virtualenv --no-setuptools' or a self-built Python). Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlHZbdIACgkQ+gerLs4ltQ7y1ACfSuEQBXY/THSNDsoLysgORTQv HeQAoI5TH6WOqNG3TR9Fuu4VKURpeil2 =kkLS -END PGP SIGNATURE- ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig