Assertion failure on hotshot.stats.load()

Yang fer7msb02 at sneakemail.com
Fri Oct 27 10:28:28 CEST 2006


I fell back onto the old profile module, but got the following error
when trying to use zope.interface. I am now without any way to profile
my application.

Traceback (most recent call last):
  File "/home/yang/local/bin/profile.py", line 611, in ?
    run('execfile(%r)' % (sys.argv[0],), options.outfile, options.sort)
  File "/home/yang/local/bin/profile.py", line 72, in run
    prof = prof.run(statement)
  File "/home/yang/local/bin/profile.py", line 448, in run
    return self.runctx(cmd, dict, dict)
  File "/home/yang/local/bin/profile.py", line 454, in runctx
    exec cmd in globals, locals
  File "<string>", line 1, in ?
  File "/.automount/nms.lcs.mit.edu/export/home/yang/proj/cartel/trunk/icedb/src/frontend/icedb-central.py",
line 5, in ?
    from icedb import *
  File "/home/yang/local/lib/python2.4/site-packages/icedb/__init__.py",
line 4, in ?
    import cafnet
  File "/home/yang/local/lib/python2.4/site-packages/cafnet/__init__.py",
line 269, in ?
    class Cnl( object ):
  File "/opt/zope/lib/python/zope/interface/advice.py", line 132, in advise
    return callback(newClass)
  File "/opt/zope/lib/python/zope/interface/declarations.py", line
485, in _implements_advice
    classImplements(cls, *interfaces)
  File "/opt/zope/lib/python/zope/interface/declarations.py", line
462, in classImplements
    spec.declared += tuple(_normalizeargs(interfaces))
  File "/opt/zope/lib/python/zope/interface/declarations.py", line
1373, in _normalizeargs
    _normalizeargs(v, output)
  File "/opt/zope/lib/python/zope/interface/declarations.py", line
1372, in _normalizeargs
    for v in sequence:
TypeError: Error when calling the metaclass bases
    iteration over non-sequence

On 10/27/06, Yang fer7msb02-at-sneakemail.com |python|
<...> wrote:
> Note: I realize hotshot is obsoleted by cProfile, but 2.5 breaks
> several packages I depend on. I'm using Python 2.4.3.
>
> I'm getting an AssertionError on "assert not self._stack" when calling
> hotshot.stats.load() on my app's hotshot profile. The app consistently
> causes hotshot to generate such a problematic profile, but I have no
> idea what's causing it. Anybody know what's wrong?
>
> Here's the profile:
>
> http://www.filefactory.com/file/76fdbd/
>
> Potentially relevant bugs:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=900092&group_id=5470&atid=105470
> http://sourceforge.net/tracker/index.php?func=detail&aid=1019882&group_id=5470&atid=105470
>
> Thanks in advance for any help.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list