[Distutils] buildout/setuptools/distribute unhelpful error message (0.7.x issue?)

Jason R. Coombs jaraco at jaraco.com
Sat Jul 13 18:37:56 CEST 2013


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.com at 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 at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6572 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130713/c3eab63a/attachment-0001.bin>


More information about the Distutils-SIG mailing list