[py-dev] Problem with py.lib and heapy
holger krekel
holger at merlinux.eu
Wed Jul 22 08:51:44 CEST 2009
Hi Vineet,
seems you are using a relatively old version (0.9.1).
could you try to upgrade to 1.0.0b7 by doing "easy_install -U py"?
This will probably overwrite what your system-wide package system installed
but it likely fixes the below problem as greenlets are not
part of the 1.0 series anymore.
best,
holger
On Tue, Jul 21, 2009 at 23:31 -0400, Vineet Jain wrote:
> I was trying to use heapy
> (http://guppy-pe.sourceforge.net/)<http://guppy-pe.sourceforge.net/>
> on
> my application (which uses py.log and py.test) to try and find some memory
> leaks. I can't seem to get it to work with py.lib (see exception trace at
> the end of the email). Can someone please guide me on how to just install
> py.log (and it's minimum requirements)? I tried downloading the tar and
> removed all the extra packages in setup.py, however, that failed. Currently
> I have py.log commented out while I'm debugging my memory leaks.
>
> hp = hpy()
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/__init__.py",
> line 37, in hpy
>
> return r.guppy.heapy.Use
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 45, in __getattr__
>
> return self._share.getattr(self, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 195, in getattr
>
> d = self.getattr2(inter, cache, owner, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 213, in getattr2
>
> x = self.getattr_package(inter, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 261, in getattr_package
>
> x = self.makeModule(x, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 321, in makeModule
>
> return Share(module, self, module.__name__, Clamp)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 184, in __init__
>
> getattr(inter, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 45, in __getattr__
>
> return self._share.getattr(self, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 195, in getattr
>
> d = self.getattr2(inter, cache, owner, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 215, in getattr2
>
> x = self.getattr3(inter, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 283, in getattr3
>
> pa = getattr(pa, at)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 45, in __getattr__
>
> return self._share.getattr(self, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 195, in getattr
>
> d = self.getattr2(inter, cache, owner, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 213, in getattr2
>
> x = self.getattr_package(inter, name)
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/etc/Glue.py",
> line 250, in getattr_package
>
> x = __import__(self.makeName(name), globals(), locals())
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/heapy/View.py",
> line 555, in <module>
>
> prime_builtin_types()
>
> File
> "/usr/lib/python2.5/site-packages/guppy-0.1.9-py2.5-linux-x86_64.egg/guppy/heapy/View.py",
> line 546, in prime_builtin_types
>
> for t in mod.__dict__.values():
>
> File "/usr/lib/python2.5/site-packages/py-0.9.1-py2.5.egg/py/initpkg.py",
> line 216, in getdict
>
> assert not self.__map__, "%r not empty" % self.__map__
>
> AssertionError: {'greenlet': ('./magic/greenlet.py', 'greenlet')} not empty
> _______________________________________________
> py-dev mailing list
> py-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
--
Metaprogramming, Python, Testing: http://tetamap.wordpress.com
Python, PyPy, pytest contracting: http://merlinux.eu
More information about the Pytest-dev
mailing list