[tahoe-lafs-trac-stream] [tahoe-lafs] #806: bogus twisted/__init__.py on Ubuntu hardy (from nevow)

tahoe-lafs trac at tahoe-lafs.org
Mon Feb 13 18:17:42 UTC 2012


#806: bogus twisted/__init__.py on Ubuntu hardy (from nevow)
---------------------------+---------------------------
     Reporter:  zooko      |      Owner:  somebody
         Type:  defect     |     Status:  new
     Priority:  major      |  Milestone:  undecided
    Component:  packaging  |    Version:  1.5.0
   Resolution:             |   Keywords:  debian ubuntu
Launchpad Bug:             |
---------------------------+---------------------------
Description changed by zooko:

Old description:

> This is almost certainly a bug in Debian/Ubuntu rather than in Tahoe-LAFS
> or Twisted, but it is relevant to Tahoe-LAFS and so I'll want to track
> progress on our tracker:
>
> {{{
> zooko at tahoebs1:~$ tahoe --version
> Traceback (most recent call last):
>   File "/usr/bin/tahoe", line 2, in <module>
>     from allmydata.scripts import runner
>   File "/usr/lib/python2.5/site-packages/allmydata/scripts/runner.py",
> line 7, in <module>
>     from twisted.python import usage
> ImportError: No module named python
> zooko at tahoebs1:~$ python -i
> Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
> [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import twisted
> >>> twisted
> <module 'twisted' from '/var/lib/python-
> support/python2.5/twisted/__init__.pyc'>
> >>> from twisted.python import runner
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named python
> >>>
> zooko at tahoebs1:~$
> zooko at tahoebs1:~$ dpkg --search /var/lib/python-
> support/python2.5/twisted/
> dpkg: /var/lib/python-support/python2.5/twisted/ not found.
> zooko at tahoebs1:~$ dpkg --search /var/lib/python-
> support/python2.5/twisted/
> __init__.py   __init__.pyc  plugins/
> zooko at tahoebs1:~$ dpkg --search /var/lib/python-
> support/python2.5/twisted/__init__.py
> dpkg: /var/lib/python-support/python2.5/twisted/__init__.py not found.
> zooko at tahoebs1:~$ /bin/rm -rf /var/lib/python-
> support/python2.5/twisted/__init__.py
> /bin/rm: cannot remove `/var/lib/python-
> support/python2.5/twisted/__init__.py': Permission denied
> zooko at tahoebs1:~$ sudo !!
> sudo /bin/rm -rf /var/lib/python-support/python2.5/twisted/__init__.py
> zooko at tahoebs1:~$ tahoe --version
> Traceback (most recent call last):
>   File "/usr/bin/tahoe", line 2, in <module>
>     from allmydata.scripts import runner
>   File "/usr/lib/python2.5/site-packages/allmydata/scripts/runner.py",
> line 7, in <module>
>     from twisted.python import usage
> ImportError: No module named python
> zooko at tahoebs1:~$ sudo /bin/rm -rf /var/lib/python-
> support/python2.5/twisted/
> __init__.pyc  plugins/
> zooko at tahoebs1:~$ sudo /bin/rm -rf /var/lib/python-
> support/python2.5/twisted/__init__.pyc
> zooko at tahoebs1:~$ tahoe --version
> allmydata-tahoe: 1.5.0-r4044, foolscap: 0.4.1, pycryptopp: 0.5.16-r669,
> zfec: 1.4.0-4, Twisted: 2.5.0, Nevow: 0.9.26, zope.interface: 3.3.1,
> python: 2.5.2, platform: Linux-Ubuntu_8.04-i686-32bit, sqlite: 3.4.2,
> simplejson: 1.7.3, argparse: 0.8.0, pyOpenSSL: 0.6, pyutil: 1.3.16-12,
> setuptools: 0.6c12dev, pysqlite: 2.3.2
> }}}
>
> See also:
>
> http://allmydata.org/pipermail/tahoe-dev/2009-August/002551.html

New description:

 This is almost certainly a bug in !Debian/Ubuntu rather than in Tahoe-LAFS
 or Twisted, but it is relevant to Tahoe-LAFS and so I'll want to track
 progress on our tracker:

 {{{
 zooko at tahoebs1:~$ tahoe --version
 Traceback (most recent call last):
   File "/usr/bin/tahoe", line 2, in <module>
     from allmydata.scripts import runner
   File "/usr/lib/python2.5/site-packages/allmydata/scripts/runner.py",
 line 7, in <module>
     from twisted.python import usage
 ImportError: No module named python
 zooko at tahoebs1:~$ python -i
 Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
 [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import twisted
 >>> twisted
 <module 'twisted' from '/var/lib/python-
 support/python2.5/twisted/__init__.pyc'>
 >>> from twisted.python import runner
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: No module named python
 >>>
 zooko at tahoebs1:~$
 zooko at tahoebs1:~$ dpkg --search /var/lib/python-support/python2.5/twisted/
 dpkg: /var/lib/python-support/python2.5/twisted/ not found.
 zooko at tahoebs1:~$ dpkg --search /var/lib/python-support/python2.5/twisted/
 __init__.py   __init__.pyc  plugins/
 zooko at tahoebs1:~$ dpkg --search /var/lib/python-
 support/python2.5/twisted/__init__.py
 dpkg: /var/lib/python-support/python2.5/twisted/__init__.py not found.
 zooko at tahoebs1:~$ /bin/rm -rf /var/lib/python-
 support/python2.5/twisted/__init__.py
 /bin/rm: cannot remove `/var/lib/python-
 support/python2.5/twisted/__init__.py': Permission denied
 zooko at tahoebs1:~$ sudo !!
 sudo /bin/rm -rf /var/lib/python-support/python2.5/twisted/__init__.py
 zooko at tahoebs1:~$ tahoe --version
 Traceback (most recent call last):
   File "/usr/bin/tahoe", line 2, in <module>
     from allmydata.scripts import runner
   File "/usr/lib/python2.5/site-packages/allmydata/scripts/runner.py",
 line 7, in <module>
     from twisted.python import usage
 ImportError: No module named python
 zooko at tahoebs1:~$ sudo /bin/rm -rf /var/lib/python-
 support/python2.5/twisted/
 __init__.pyc  plugins/
 zooko at tahoebs1:~$ sudo /bin/rm -rf /var/lib/python-
 support/python2.5/twisted/__init__.pyc
 zooko at tahoebs1:~$ tahoe --version
 allmydata-tahoe: 1.5.0-r4044, foolscap: 0.4.1, pycryptopp: 0.5.16-r669,
 zfec: 1.4.0-4, Twisted: 2.5.0, Nevow: 0.9.26, zope.interface: 3.3.1,
 python: 2.5.2, platform: Linux-Ubuntu_8.04-i686-32bit, sqlite: 3.4.2,
 simplejson: 1.7.3, argparse: 0.8.0, pyOpenSSL: 0.6, pyutil: 1.3.16-12,
 setuptools: 0.6c12dev, pysqlite: 2.3.2
 }}}

 See also:

 http://allmydata.org/pipermail/tahoe-dev/2009-August/002551.html

--

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


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