"setup.py install" skips zope/interface/common/

Bug #611362 reported by Jean-Paul Calderone on 2010-07-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Won't Fix

Bug Description

After installing the 3.6.1 release from PyPI, the zope.interface.common package is not available:

  exarkun@boson:~/Downloads$ tar xzf zope.interface-3.6.1.tar.gz
  exarkun@boson:~/Downloads$ cd zope.interface-3.6.1/
  exarkun@boson:~/Downloads/zope.interface-3.6.1$ python setup.py install --quiet --prefix /tmp/ZOPE-TEST
  /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'
  exarkun@boson:~/Downloads/zope.interface-3.6.1$ PYTHONPATH=/tmp/ZOPE-TEST/ python -c 'from zope.interface import common'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  ImportError: cannot import name common

Jean-Paul Calderone (exarkun) wrote :

Hash: SHA1

Jean-Paul Calderone wrote:
> Public bug reported:
> After installing the 3.6.1 release from PyPI, the zope.interface.common
> package is not available:
> exarkun@boson:~/Downloads$ tar xzf zope.interface-3.6.1.tar.gz
> exarkun@boson:~/Downloads$ cd zope.interface-3.6.1/
> exarkun@boson:~/Downloads/zope.interface-3.6.1$ python setup.py install --quiet --prefix /tmp/ZOPE-TEST
> /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'
> ....
> exarkun@boson:~/Downloads/zope.interface-3.6.1$ PYTHONPATH=/tmp/ZOPE-TEST/ python -c 'from zope.interface import common'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: cannot import name common
> exarkun@boson:~/Downloads/zope.interface-3.6.1$
> ** Affects: zope.interface
> Importance: Undecided
> Status: New

 status incomplete

Hmm, this seems to be true only when installing without setuptools:

 $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages /tmp/lp_611362
 New python executable in /tmp/lp_611362/bin/python
 Installing setuptools............done.
 $ /tmp/lp_611362/bin/easy_install zope.interface
 Searching for zope.interface
 Reading http://pypi.python.org/simple/zope.interface/
 Best match: zope.interface 3.6.1
 Processing zope.interface-3.6.1.tar.gz
 Running zope.interface-3.6.1/setup.py -q bdist_egg --dist-dir
 Adding zope.interface 3.6.1 to easy-install.pth file

 Processing dependencies for zope.interface
 Finished processing dependencies for zope.interface
 $ /tmp/lp_611362/bin/python
 Python 2.6.5 (r265:79063, Apr 6 2010, 14:45:18)
 [GCC 4.3.3] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import zope.interface
 >>> import zope.interface.common
 >>> zope.interface.__file__
 >>> zope.interface.common.__file__

- --
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Changed in zope.interface:
status: New → Incomplete
Jean-Paul Calderone (exarkun) wrote :

Okay. Why is this marked as Incomplete?

Glyph Lefkowitz (glyph) wrote :

I just heard about a case of this happening on Ubuntu 12.10. I suspect it's a bug in setuptools or distutils or ubuntu's patching of same, not zope.interface; can someone comment on what mechanism ZI uses to include the 'common' package? I don't see it in setup.cfg, or a manifest file... I am guessing there's some setuptools magic which is supposed to make it get included.

Changed in zope.interface:
status: Incomplete → Confirmed
Glyph Lefkowitz (glyph) wrote :

Also of note; setuptools *was* installed on the system where this happened. It was zope.interface 4.0.3 in this case.

Tres Seaver (tseaver) wrote :
Changed in zope.interface:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers