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-
[email protected]] 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  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to