Hello,
I have version 0.1.3 of guppy and version 2.4 of Python
installed.
I get the following error when I try to instantiate hpy.
------------------------------------------------------------------------
goldenmyst:(~/D/guppy-0.1.3)$ python
Python 2.4.4c0 (#2, Sep 29 2006, 20:19:45)
[GCC 4.1.2 20060920 (prerelease) (Ubuntu
4.1.1-13ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> from guppy import hpy
>>> hp = hpy()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "guppy/__init__.py", line 35, in hpy
return r.guppy.heapy.Use
File "guppy/etc/Glue.py", line 44, in __getattr__
return self._share.getattr(self, name)
File "guppy/etc/Glue.py", line 187, in getattr
d = self.getattr2(inter, cache, owner, name)
File "guppy/etc/Glue.py", line 221, in getattr2
x = self.makeModule(x, name)
File "guppy/etc/Glue.py", line 296, in makeModule
return Share(module, self, module.__name__, Clamp)
File "guppy/etc/Glue.py", line 176, in __init__
getattr(inter, name)
File "guppy/etc/Glue.py", line 44, in __getattr__
return self._share.getattr(self, name)
File "guppy/etc/Glue.py", line 187, in getattr
d = self.getattr2(inter, cache, owner, name)
File "guppy/etc/Glue.py", line 211, in getattr2
x = self.getattr3(inter, name)
File "guppy/etc/Glue.py", line 258, in getattr3
pa = getattr(pa, at)
File "guppy/etc/Glue.py", line 44, in __getattr__
return self._share.getattr(self, name)
File "guppy/etc/Glue.py", line 187, in getattr
d = self.getattr2(inter, cache, owner, name)
File "guppy/etc/Glue.py", line 219, in getattr2
x = getattr(self.module, name)
AttributeError: 'module' object has no attribute 'View'
>>>
------------------------------------------------------------------------
Regards
Logged In: YES
user_id=356603
Thanks for your bug report.
This symptom may occur when either:
1. The compiled .so files (heapyc.so and setsc.so) are not
in the correct places in the search path (as after a correct
installation)
2. If the .so files could not be loaded for some other
reason, perhaps they were compiled against wrong version of
include files and they had some undefined symbol.
So I suggest you check the installation again. What is your
Python path and where are the heapyc.so and setsc.so files
installed? heapyc.so should be in the guppy/heapy directory
and setsc.so should be in guppy/sets .
Admittedly, the error message is too late - it should be
earlier and be more specific. I am looking into this now any
of these days.
Otherwise, I think it should work well on your installation
- I am using Ubuntu myself and is quite happy with it.
(I am using a late 2005 version, I see you have a newer
version - I guess it should not be any problem with a newer
C compiler?? though one never knows.)
To see what more exactly is the problem, you could try to
import the extension modules directly:
import guppy.heapy.heapyc
import guppy.sets.setsc
BTW, I am currently making a new version which should work
with Python 2.5 as well as be backwards-compatible with 2.4
and 2.3. I think I will announce this version within a week
or so. I hope I can figure out how to make the situation you
mention better explained when it occurs- it has been
reported before though not on this list and I
sometimes find myself stumbling over it when switching
between different Python versions.
Regards,
Sverker Nilsson
Logged In: YES
user_id=356603
Originator: NO
It's probably that you are in the guppy directory. Try cd somewhere else, see README and the mailing list.
I'll close this item soon if nobody has an objection.
Sverker