[Distutils] Setuptools/Distribute error with 0.7.2

Julian Berman julian at grayvines.com
Sun Jun 9 20:46:22 CEST 2013


Hey Jason.

I was getting it before you removed it I think (and yeah, still get it now
if I `pip install
https://bitbucket.org/pypa/setuptools/downloads/distribute-0.7.zip`).

An example of such a package is pudb, if you'd like to try and reproduce
(or I can open an issue on the tracker, just wasn't sure I wasn't missing
something), but even if I install with easy_install I still seem to get the
same output:

⊙  easy_install pudb

             Julian at air
Searching for pudb
Reading https://pypi.python.org/simple/pudb/
Best match: pudb 2013.2
Downloading
https://pypi.python.org/packages/source/p/pudb/pudb-2013.2.tar.gz#md5=16411aaffc6f7ae63aba3830ba4ebee5
Processing pudb-2013.2.tar.gz
Writing
/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/setup.cfg
Running pudb-2013.2/setup.py -q bdist_egg --dist-dir
/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/egg-dist-tmp-6RBU6H
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
Extracting in
/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl
Now working in
/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35
Building a Distribute egg in
/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2
Traceback (most recent call last):
  File "setup.py", line 45, in <module>
    exec(init_file.read(), d)
  File "<string>", line 8, in <module>
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/__init__.py",
line 2, in <module>
    from setuptools.extension import Extension, Library
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/extension.py",
line 5, in <module>
    from setuptools.dist import _get_unpatched
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/dist.py",
line 6, in <module>
    from setuptools.command.install import install
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/command/__init__.py",
line 8, in <module>
    from setuptools.command import install_scripts
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/command/install_scripts.py",
line 3, in <module>
    from pkg_resources import Distribution, PathMetadata, ensure_directory
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py",
line 2825, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py",
line 710, in subscribe
    callback(dist)
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py",
line 2825, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py",
line 2257, in activate
    self.insert_on(path)
  File
"/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py",
line 2358, 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
/usr/local/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg
/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/distribute-0.6.35-py2.7.egg
error: None

~
⊙  pip freeze | grep distribute

               Julian at air
distribute==0.7


On Sun, Jun 9, 2013 at 2:29 PM, Jason R. Coombs <jaraco at jaraco.com> wrote:

> Hi Julian,****
>
>                 I believe for those packages that call `use_setuptools()`
> from `distribute_setup.py`, the only option to support them is to install
> Distribute 0.7 (the stub package), which I believe will satisfy the
> use_setuptools() call so it doesn’t attempt to install Distribute 0.6.****
>
> ** **
>
>                 As mentioned in another post, I’ve temporarily pulled
> Distribute 0.7 from PyPI until we can determine a way to avoid the pip
> upgrade issue. In the meantime, if you install Distribute 0.7 from
> https://bitbucket.org/pypa/setuptools/downloads, does that solve your
> issue?****
>
> ** **
>
> Regards,****
>
> Jason****
>
> ** **
>
> *From:* Distutils-SIG [mailto:distutils-sig-bounces+jaraco=
> jaraco.com at python.org] *On Behalf Of *Julian Berman
> *Sent:* Sunday, 09 June, 2013 14:21
> *To:* distutils-sig at python.org
> *Subject:* Re: [Distutils] Setuptools/Distribute error with 0.7.2****
>
> ** **
>
> (I was also getting this until I used easy_install to upgrade)****
>
> ** **
>
> What is supposed to happen with stuff that used to do `use_setuptools()`
> in their setup.py now?****
>
> ** **
>
> I upgraded to setuptools 0.7.2, but now if I try to install a thing that
> has that in the setup.py, it seems to want to try and install distribute,
> and I get:****
>
> ** **
>
> Downloading/unpacking pudb (from -r
> /Users/Julian/.local/share/virtualenvs/requirements-every-virtualenv.txt
> (line 2))****
>
>   Using download cache from /Users/Julian/Library/Caches/pip/https%3A%2F%
> 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpudb%2Fpudb-2013.2.tar.gz****
>
>   Running setup.py egg_info for package pudb****
>
>     Downloading
> http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
> ****
>
>     Extracting in
> /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3****
>
>     Now working in
> /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35
> ****
>
>     Building a Distribute egg in
> /Users/Julian/.local/share/virtualenvs/great/build/pudb****
>
>     Traceback (most recent call last):****
>
>       File "setup.py", line 45, in <module>****
>
>         exec(init_file.read(), d)****
>
>       File "<string>", line 8, in <module>****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/__init__.py",
> line 2, in <module>****
>
>         from setuptools.extension import Extension, Library****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/extension.py",
> line 5, in <module>****
>
>         from setuptools.dist import _get_unpatched****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/dist.py",
> line 6, in <module>****
>
>         from setuptools.command.install import install****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/__init__.py",
> line 8, in <module>****
>
>         from setuptools.command import install_scripts****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/install_scripts.py",
> line 3, in <module>****
>
>         from pkg_resources import Distribution, PathMetadata,
> ensure_directory****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2825, in <module>****
>
>         add_activation_listener(lambda dist: dist.activate())****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 710, in subscribe****
>
>         callback(dist)****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2825, in <lambda>****
>
>         add_activation_listener(lambda dist: dist.activate())****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2257, in activate****
>
>         self.insert_on(path)****
>
>       File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2358, 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/Julian/.local/share/virtualenvs/great/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg
> ****
>
>
> /Users/Julian/.local/share/virtualenvs/great/build/pudb/distribute-0.6.35-py2.7.egg
> ****
>
>     Traceback (most recent call last):****
>
>       File "<string>", line 16, in <module>****
>
>       File
> "/Users/Julian/.local/share/virtualenvs/great/build/pudb/setup.py", line 5,
> in <module>****
>
>         use_setuptools()****
>
>       File "distribute_setup.py", line 152, in use_setuptools****
>
>         return _do_download(version, download_base, to_dir, download_delay)
> ****
>
>       File "distribute_setup.py", line 132, in _do_download****
>
>         _build_egg(egg, tarball, to_dir)****
>
>       File "distribute_setup.py", line 123, in _build_egg****
>
>         raise IOError('Could not build the egg.')****
>
>     IOError: Could not build the egg.****
>
>     Complete output from command python setup.py egg_info:****
>
>     Downloading
> http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
> ****
>
> ** **
>
> Extracting in /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3**
> **
>
> ** **
>
> Now working in
> /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35
> ****
>
> ** **
>
> Building a Distribute egg in
> /Users/Julian/.local/share/virtualenvs/great/build/pudb****
>
> ** **
>
> Traceback (most recent call last):****
>
> ** **
>
>   File "setup.py", line 45, in <module>****
>
> ** **
>
>     exec(init_file.read(), d)****
>
> ** **
>
>   File "<string>", line 8, in <module>****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/__init__.py",
> line 2, in <module>****
>
> ** **
>
>     from setuptools.extension import Extension, Library****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/extension.py",
> line 5, in <module>****
>
> ** **
>
>     from setuptools.dist import _get_unpatched****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/dist.py",
> line 6, in <module>****
>
> ** **
>
>     from setuptools.command.install import install****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/__init__.py",
> line 8, in <module>****
>
> ** **
>
>     from setuptools.command import install_scripts****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/install_scripts.py",
> line 3, in <module>****
>
> ** **
>
>     from pkg_resources import Distribution, PathMetadata, ensure_directory
> ****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2825, in <module>****
>
> ** **
>
>     add_activation_listener(lambda dist: dist.activate())****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 710, in subscribe****
>
> ** **
>
>     callback(dist)****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2825, in <lambda>****
>
> ** **
>
>     add_activation_listener(lambda dist: dist.activate())****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2257, in activate****
>
> ** **
>
>     self.insert_on(path)****
>
> ** **
>
>   File
> "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py",
> line 2358, 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/Julian/.local/share/virtualenvs/great/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg
> ****
>
> ** **
>
>
> /Users/Julian/.local/share/virtualenvs/great/build/pudb/distribute-0.6.35-py2.7.egg
> ****
>
> ** **
>
> Traceback (most recent call last):****
>
> ** **
>
>   File "<string>", line 16, in <module>****
>
> ** **
>
>   File "/Users/Julian/.local/share/virtualenvs/great/build/pudb/setup.py",
> line 5, in <module>****
>
> ** **
>
>     use_setuptools()****
>
> ** **
>
>   File "distribute_setup.py", line 152, in use_setuptools****
>
> ** **
>
>     return _do_download(version, download_base, to_dir, download_delay)***
> *
>
> ** **
>
>   File "distribute_setup.py", line 132, in _do_download****
>
> ** **
>
>     _build_egg(egg, tarball, to_dir)****
>
> ** **
>
>   File "distribute_setup.py", line 123, in _build_egg****
>
> ** **
>
>     raise IOError('Could not build the egg.')****
>
> ** **
>
> IOError: Could not build the egg.****
>
> ** **
>
> ----------------------------------------****
>
> Command python setup.py egg_info failed with error code 1 in
> /Users/Julian/.local/share/virtualenvs/great/build/pudb****
>
> S****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130609/e8486f64/attachment-0001.html>


More information about the Distutils-SIG mailing list