[tahoe-lafs-trac-stream] [tahoe-lafs] #2032: `pip` managed install is broken.

tahoe-lafs trac at tahoe-lafs.org
Fri Jul 26 06:04:57 UTC 2013


#2032: `pip` managed install is broken.
---------------------------+----------------------------
     Reporter:  nejucomo   |      Owner:
         Type:  defect     |     Status:  new
     Priority:  major      |  Milestone:  undecided
    Component:  packaging  |    Version:  1.10.0
   Resolution:             |   Keywords:  pypi packaging
Launchpad Bug:             |
---------------------------+----------------------------
Description changed by nejucomo:

Old description:

> I used to be able to successfully run `pip install allmydata-tahoe` in a
> fresh virtualenv, but this now fails as of 1.10.0.
>
> It appears related to `Nevow`.  I'm hopping on `#twisted` to ask for
> advice.
>
> {{{
> $ mkdir ~/tmp/tahoe-install-test
>
> $ cd !$
> cd ~/tmp/tahoe-install-test
>
> $ virtualenv .
> Using real prefix '/usr/local/bin/../stow/Python-2.7.3-setuptools-0.6c11'
> New python executable in ./bin/python
> Installing setuptools............done.
> Installing pip...............done.
>
> $ source ./bin/activate
> (tahoe-install-test)
> $ pip install allmydata-tahoe
> Downloading/unpacking allmydata-tahoe
>   Downloading allmydata-tahoe-1.10.0.tar.gz (1.4MB): 1.4MB downloaded
>   Running setup.py egg_info for package allmydata-tahoe
>     Not found: tahoe-deps
>     Not found: ../tahoe-deps
>
>     Installed /home/n/tmp/tahoe-install-test/build/allmydata-
> tahoe/Twisted-13.0.0-py2.7-linux-x86_64.egg
>     Searching for zope.interface==3.6.0,==3.6.1,==3.6.2,>=3.6.5
>     Reading http://pypi.python.org/simple/zope.interface/
>     Best match: zope.interface 4.0.5
>     Downloading https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-
> dep-sdists/zope.interface-4.0.5.zip
>     Processing zope.interface-4.0.5.zip
>     Running zope.interface-4.0.5/setup.py -q bdist_egg --dist-dir
> /home/n/tmp/easy_install-B8abnY/zope.interface-4.0.5/egg-dist-tmp-7VsGgq
>     warning: no previously-included files matching '*.dll' found anywhere
> in distribution
>     warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
>     warning: no previously-included files matching '*.pyo' found anywhere
> in distribution
>     warning: no previously-included files matching '*.so' found anywhere
> in distribution
>
>     Installed /home/n/tmp/tahoe-install-test/build/allmydata-
> tahoe/zope.interface-4.0.5-py2.7-linux-x86_64.egg
>
>     package init file 'src/allmydata/web/static/__init__.py' not found
> (or not a regular file)
>     package init file 'src/allmydata/web/static/css/__init__.py' not
> found (or not a regular file)
>     warning: no previously-included files matching '*~' found anywhere in
> distribution
>     warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
> Requirement already satisfied (use --upgrade to upgrade):
> setuptools>=0.6c6 in ./lib/python2.7/site-
> packages/setuptools-0.6c11-py2.7.egg (from allmydata-tahoe)
> Downloading/unpacking zfec>=1.1.0 (from allmydata-tahoe)
>   Downloading zfec-1.4.24.tar.gz (175kB): 175kB downloaded
>   Running setup.py egg_info for package zfec
>
> Downloading/unpacking simplejson>=1.4 (from allmydata-tahoe)
>   Downloading simplejson-3.3.0.tar.gz (67kB): 67kB downloaded
>   Running setup.py egg_info for package simplejson
>
> Downloading/unpacking zope.interface==3.6.0,==3.6.1,==3.6.2,>=3.6.5 (from
> allmydata-tahoe)
>   Downloading zope.interface-4.0.5.zip (173kB): 173kB downloaded
>   Running setup.py egg_info for package zope.interface
>
>     warning: no previously-included files matching '*.dll' found anywhere
> in distribution
>     warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
>     warning: no previously-included files matching '*.pyo' found anywhere
> in distribution
>     warning: no previously-included files matching '*.so' found anywhere
> in distribution
> Downloading/unpacking Twisted>=11.0.0 (from allmydata-tahoe)
>   Downloading Twisted-13.1.0.tar.bz2 (2.7MB): 2.7MB downloaded
>   Running setup.py egg_info for package Twisted
>
> Downloading/unpacking foolscap>=0.6.3 (from allmydata-tahoe)
>   Downloading foolscap-0.6.4.tar.gz (479kB): 479kB downloaded
>   Running setup.py egg_info for package foolscap
>
> Downloading/unpacking pyOpenSSL (from allmydata-tahoe)
>   Downloading pyOpenSSL-0.13.tar.gz (250kB): 250kB downloaded
>   Running setup.py egg_info for package pyOpenSSL
>
>     warning: no previously-included files matching '*.pyc' found anywhere
> in distribution
> Downloading/unpacking Nevow>=0.6.0 (from allmydata-tahoe)
>   Downloading Nevow-0.10.0.tar.gz (518kB): 518kB downloaded
>   Running setup.py egg_info for package Nevow
>     Traceback (most recent call last):
>       File "<string>", line 16, in <module>
>       File "/home/n/tmp/tahoe-install-test/build/Nevow/setup.py", line 3,
> in <module>
>         from nevow import __version__ as version
>       File "nevow/__init__.py", line 5, in <module>
>         from nevow._version import version
>       File "nevow/_version.py", line 2, in <module>
>         from twisted.python import versions
>     ImportError: No module named twisted.python
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>
>   File "<string>", line 16, in <module>
>
>   File "/home/n/tmp/tahoe-install-test/build/Nevow/setup.py", line 3, in
> <module>
>
>     from nevow import __version__ as version
>
>   File "nevow/__init__.py", line 5, in <module>
>
>     from nevow._version import version
>
>   File "nevow/_version.py", line 2, in <module>
>
>     from twisted.python import versions
>
> ImportError: No module named twisted.python
>
> ----------------------------------------
> Command python setup.py egg_info failed with error code 1 in /home/n/tmp
> /tahoe-install-test/build/Nevow
> Storing complete log in /home/n/.pip/pip.log
> }}}

New description:

 **Synopsis:**

 The command `pip install allmydata-tahoe` fails because of a bug in the
 `Nevow` dependency.

 **Known workaround:**

 Install `twisted` first with pip.  This works for me:

 {{{
 $ pip install twisted && pip install allmydata-tahoe
 }}}

 **Details:**

 It appears related to `Nevow`.  I'm hopping on `#twisted` to ask for
 advice.

 {{{
 $ mkdir ~/tmp/tahoe-install-test

 $ cd !$
 cd ~/tmp/tahoe-install-test

 $ virtualenv .
 Using real prefix '/usr/local/bin/../stow/Python-2.7.3-setuptools-0.6c11'
 New python executable in ./bin/python
 Installing setuptools............done.
 Installing pip...............done.

 $ source ./bin/activate
 (tahoe-install-test)
 $ pip install allmydata-tahoe
 Downloading/unpacking allmydata-tahoe
   Downloading allmydata-tahoe-1.10.0.tar.gz (1.4MB): 1.4MB downloaded
   Running setup.py egg_info for package allmydata-tahoe
     Not found: tahoe-deps
     Not found: ../tahoe-deps

     Installed /home/n/tmp/tahoe-install-test/build/allmydata-
 tahoe/Twisted-13.0.0-py2.7-linux-x86_64.egg
     Searching for zope.interface==3.6.0,==3.6.1,==3.6.2,>=3.6.5
     Reading http://pypi.python.org/simple/zope.interface/
     Best match: zope.interface 4.0.5
     Downloading https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-
 dep-sdists/zope.interface-4.0.5.zip
     Processing zope.interface-4.0.5.zip
     Running zope.interface-4.0.5/setup.py -q bdist_egg --dist-dir
 /home/n/tmp/easy_install-B8abnY/zope.interface-4.0.5/egg-dist-tmp-7VsGgq
     warning: no previously-included files matching '*.dll' found anywhere
 in distribution
     warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
     warning: no previously-included files matching '*.pyo' found anywhere
 in distribution
     warning: no previously-included files matching '*.so' found anywhere
 in distribution

     Installed /home/n/tmp/tahoe-install-test/build/allmydata-
 tahoe/zope.interface-4.0.5-py2.7-linux-x86_64.egg

     package init file 'src/allmydata/web/static/__init__.py' not found (or
 not a regular file)
     package init file 'src/allmydata/web/static/css/__init__.py' not found
 (or not a regular file)
     warning: no previously-included files matching '*~' found anywhere in
 distribution
     warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
 Requirement already satisfied (use --upgrade to upgrade):
 setuptools>=0.6c6 in ./lib/python2.7/site-
 packages/setuptools-0.6c11-py2.7.egg (from allmydata-tahoe)
 Downloading/unpacking zfec>=1.1.0 (from allmydata-tahoe)
   Downloading zfec-1.4.24.tar.gz (175kB): 175kB downloaded
   Running setup.py egg_info for package zfec

 Downloading/unpacking simplejson>=1.4 (from allmydata-tahoe)
   Downloading simplejson-3.3.0.tar.gz (67kB): 67kB downloaded
   Running setup.py egg_info for package simplejson

 Downloading/unpacking zope.interface==3.6.0,==3.6.1,==3.6.2,>=3.6.5 (from
 allmydata-tahoe)
   Downloading zope.interface-4.0.5.zip (173kB): 173kB downloaded
   Running setup.py egg_info for package zope.interface

     warning: no previously-included files matching '*.dll' found anywhere
 in distribution
     warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
     warning: no previously-included files matching '*.pyo' found anywhere
 in distribution
     warning: no previously-included files matching '*.so' found anywhere
 in distribution
 Downloading/unpacking Twisted>=11.0.0 (from allmydata-tahoe)
   Downloading Twisted-13.1.0.tar.bz2 (2.7MB): 2.7MB downloaded
   Running setup.py egg_info for package Twisted

 Downloading/unpacking foolscap>=0.6.3 (from allmydata-tahoe)
   Downloading foolscap-0.6.4.tar.gz (479kB): 479kB downloaded
   Running setup.py egg_info for package foolscap

 Downloading/unpacking pyOpenSSL (from allmydata-tahoe)
   Downloading pyOpenSSL-0.13.tar.gz (250kB): 250kB downloaded
   Running setup.py egg_info for package pyOpenSSL

     warning: no previously-included files matching '*.pyc' found anywhere
 in distribution
 Downloading/unpacking Nevow>=0.6.0 (from allmydata-tahoe)
   Downloading Nevow-0.10.0.tar.gz (518kB): 518kB downloaded
   Running setup.py egg_info for package Nevow
     Traceback (most recent call last):
       File "<string>", line 16, in <module>
       File "/home/n/tmp/tahoe-install-test/build/Nevow/setup.py", line 3,
 in <module>
         from nevow import __version__ as version
       File "nevow/__init__.py", line 5, in <module>
         from nevow._version import version
       File "nevow/_version.py", line 2, in <module>
         from twisted.python import versions
     ImportError: No module named twisted.python
     Complete output from command python setup.py egg_info:
     Traceback (most recent call last):

   File "<string>", line 16, in <module>

   File "/home/n/tmp/tahoe-install-test/build/Nevow/setup.py", line 3, in
 <module>

     from nevow import __version__ as version

   File "nevow/__init__.py", line 5, in <module>

     from nevow._version import version

   File "nevow/_version.py", line 2, in <module>

     from twisted.python import versions

 ImportError: No module named twisted.python

 ----------------------------------------
 Command python setup.py egg_info failed with error code 1 in /home/n/tmp
 /tahoe-install-test/build/Nevow
 Storing complete log in /home/n/.pip/pip.log
 }}}

--

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2032#comment:8>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list