Comment 6 for bug 410098

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 410098] Re: Installing python-nevow breaks twisted trial

Not sure. Maybe http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521663 ?

"Zooko O'Whielacronx" <email address hidden> wrote:

>Scott: do you remember what the fix was that went into nevow 0.10.0-1?
>I'm working with a user who has a similar problem -- they have the
>python-twisted-web package installed in Lucid, but "import twisted.web"
>gets an import error after getting twisted from
>/usr/lib/python2.6/dist-
>packages/twisted/__init__.py. There are symlinks in /usr/lib/python2.6
>/dist-packages/twisted/ pointing to pyshared for *some* of the things
>that live in the namespace "twisted" but not for "web". We haven't yet
>fully narrowed down whether this is a bug in Ubuntu itself or if we
>manually edited part of the system or what. It might help if we knew
>what the change was in nevow that (presumably) should still be present
>in the Lucid version of nevow. Thanks!
>
>--
>You received this bug notification because you are a direct subscriber
>of the bug.
>https://bugs.launchpad.net/bugs/410098
>
>Title:
> Installing python-nevow breaks twisted trial
>
>Status in Divmod Nevow:
> New
>Status in Tahoe, the Lovely Accessible File System:
> New
>Status in “nevow” package in Ubuntu:
> Fix Released
>
>Bug description:
>After installing python-nevow, the "trial" test utility provided by
>python-twisted-core fails with the following error message:
>
>Traceback (most recent call last):
> File "/usr/bin/trial", line 23, in <module>
> from twisted.scripts.trial import run
>ImportError: No module named scripts.trial
>
>Investigation reveals that the culprit is an empty "__init__.py" file
>generated by the nevow installation. This file is placed in
>/var/lib/python-support/python2.5/twisted/plugins. The existence of
>that file breaks twisted's plugin finding approach and causes it to
>fail to find the twisted.scripts package, which is actually located at
>/usr/share/pyshared/twisted/scripts.
>
>I can't see how this file gets generated
>
>Source package: nevow
>Ubuntu release: Ubuntu 8.04.3 LTS
>Package versions: python-nevow: 0.9.26-1, python-twisted-core:
>2.5.0-2build2, python2.5: 2.5.2-2ubuntu6
>
>To unsubscribe from this bug, go to:
>https://bugs.launchpad.net/nevow/+bug/410098/+subscribe