Bug#666914: /usr/lib/python2.7/dist-packages/zope/__init__.py:3: UserWarning: Module dap was already imported from None

Brian Sutherland brian at vanguardistas.net
Mon Apr 2 16:33:41 UTC 2012


The code which actually prints the warning is pkg_resources, which is in
python-pkg-resources.

There's a lot of code out there importing pkg_resources, removing the
import from zope/__init__.py isn't going to help much (and will break
some things).

There's already a bug on python-pkg-resources about this`: #473584

On Mon, Apr 02, 2012 at 03:35:15PM +0200, Laurent Bonnaud wrote:
> Package: python-zope.interface
> Version: 3.6.1-1
> Severity: normal
> 
> 
> Hi,
> 
> this package is the cause of error messages in unrelated packages, for
> instance:
> 
> $ reportbug 
> /usr/lib/python2.7/dist-packages/zope/__init__.py:3: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
>   import pkg_resources
> 
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> 
> Kernel: Linux 3.2.0-2-rt-686-pae (SMP w/1 CPU core; PREEMPT)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages python-zope.interface depends on:
> ii  libc6                 2.13-27
> ii  python                2.7.2-10
> ii  python-pkg-resources  0.6.24-1
> ii  python2.6             2.6.7-4
> ii  python2.7             2.7.3~rc2-1
> 
> python-zope.interface recommends no packages.
> 
> python-zope.interface suggests no packages.
> 
> -- no debconf information
> 
> 
> 
> _______________________________________________
> pkg-zope-developers mailing list
> pkg-zope-developers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-zope-developers

-- 
Brian Sutherland





More information about the pkg-zope-developers mailing list