[python-daemon-Bugs][314948] errors in Setuptools actions after installing python-daemon

python-daemon-bugs at alioth.debian.org python-daemon-bugs at alioth.debian.org
Fri Jan 23 01:46:57 UTC 2015


python-daemon-Bugs item #314948 was changed at 2015-01-23 12:46 by Ben Finney
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=314948&group_id=100328

Status: Open
Priority: 3
Submitted By: Paul Joireman (joireman-guest)
Assigned to: Nobody (None)
>Summary: errors in Setuptools actions after installing python-daemon 


Initial Comment:
When I install python-daemon 2.0.3 in a virtual environment with pip, an error is reported and subsequent installs using pip seem to fail with the same error:

=====
Downloading/unpacking docutils (from python-daemon)
  […]
  Downloading from URL https://pypi.python.org/packages/source/d/docutils/docutils-0.12.tar.gz#md5=4622263b62c5c771c03502afa3157768 (from https://pypi.python.org/simple/docutils/)
  Running setup.py (path:/home/pwj/.virtualenvs/venv/build/docutils/setup.py) egg_info for package docutils
  […]
Installing collected packages: python-daemon, lockfile, docutils
  Running setup.py install for docutils
    Running command /home/pwj/.virtualenvs/venv/bin/python -c "import setuptools, tokenize;__file__='/home/pwj/.virtualenvs/venv/build/docutils/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7iBtrf-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pwj/.virtualenvs/venv/include/site/python2.7
    […]
    Running docutils-0.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XO8spm/docutils-0.12/egg-dist-tmp-0EsqLD
    Traceback (most recent call last):
      […]
      File "/home/pwj/.virtualenvs/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
        ['__name__'])
    ImportError: No module named version
=====

The pip.log is attached, I get the same error at the end when I install other modules (flask, celery, for example). 

Rolling back to 2.0.2 solves this issue, but wanted to report this in any case.

Using Python 2.7.6 and pip 1.5.6


----------------------------------------------------------------------

Comment By: Ben Finney (bignose-guest)
Date: 2015-01-23 12:35

Message:
This is caused by the Setuptools entry points installed by ‘python-daemon’ 2.0.3.

As explained in the thread at https://mail.python.org/pipermail/distutils-sig/2015-January/025648.html on ‘distutils-sig’, Setuptools entry points are not local to a single distribution. They affect every distribution's setup from that point forward.

The correct solution will be to avoid using Setuptools entry points entirely.


----------------------------------------------------------------------

Comment By: Ben Finney (bignose-guest)
Date: 2015-01-23 12:30

Message:
Thanks for the report. I have updated the description to focus on the point where the error occurs.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=314948&group_id=100328



More information about the python-daemon-bugs mailing list