[wingide-users] debugging code that uses zope.interface

Eric Mangold teratorn at twistedmatrix.com
Sun Dec 19 17:12:41 EST 2004


Hello,

I'm trying to debug a Twisted-using application, but I'm running in to a
problem with zope.interface (Twisted depends on zope.interface)

debugging the following program results in a traceback

  from zope.interface import implements
print "here"

I get this traceback:

AttributeError: __provides__

Traceback (innermost last):

File "/home/torn/code/wingide-problem.py", line 1, in ?
    from zope.interface import implements
File "/home/torn/code/wingide-problem.py", line 1, in ?
    from zope.interface import implements
File "/home/torn/code/pypath/zope/interface/__init__.py", line 76, in ?
    _wire()
File "/home/torn/code/pypath/zope/interface/interface.py", line 906, in
_wire
    classImplements(Attribute, IAttribute)
File "/home/torn/code/pypath/zope/interface/declarations.py", line 452, in
classImplements
    spec = implementedBy(cls)
File "/home/torn/code/pypath/zope/interface/declarations.py", line 349, in
implementedByFallback
    if not hasattr(cls, '__providedBy__'):
File "/home/torn/code/pypath/zope/interface/declarations.py", line 1243,
in __get__
    return getObjectSpecification(cls)
File "/home/torn/code/pypath/zope/interface/declarations.py", line 1149,
in getObjectSpecification
    provides = getattr(ob, '__provides__', None)
File "/home/torn/code/pypath/zope/interface/declarations.py", line 853, in
__get__
    raise AttributeError, '__provides__'


Also, isn't it weird that it's showing the following block of text twice?
File "/home/torn/code/wingide-problem.py", line 1, in ?
    from zope.interface import implements

Any idea what is going on?

-Eric Mangold


More information about the wingide-users mailing list