Menu

#4 Import error on heapyc

closed
heapy (7)
5
2014-08-22
2008-03-07
No

I've got an ImportError when calling guppy.hpy(). Tried on two linux systems.

System 1:
Ubuntu 7.10
python 2.5.1
gcc 4.1.3

System 2:
Debian Etch
python 2.4.4
gcc 4.1.2

The install seemed to go well:
$ locate heapyc.so
/usr/lib/python2.5/site-packages/guppy/heapy/heapyc.so
$ locate setsc.so
/usr/lib/python2.5/site-packages/guppy/sets/setsc.so

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 202, in getattr2
x = self.getattr_package(inter, name)
File "guppy/etc/Glue.py", line 250, in getattr_package
x = self.makeModule(x, name)
File "guppy/etc/Glue.py", line 310, 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 204, in getattr2
x = self.getattr3(inter, name)
File "guppy/etc/Glue.py", line 272, 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 202, in getattr2
x = self.getattr_package(inter, name)
File "guppy/etc/Glue.py", line 239, in getattr_package
x = __import__(self.makeName(name), globals(), locals())
File "guppy/heapy/View.py", line 556, in ?
prime_builtin_types()
File "guppy/heapy/View.py", line 539, in prime_builtin_types
import guppy.heapy.heapyc
ImportError: No module named heapyc

Thanks in advance.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have no idea yet but, what is your sys.path? Did you do like this or somewhat? /Regards, Sverker

    >> from guppy import hpy
    >>> hp=hpy()
    >>> import sys
    >>> sys.path
    ['', '/usr/share/emacs/22.1/etc', '/home/sverker/sys/python', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0']
    >>>
    sverker@sverker-laptop:~$

     
  • Nobody/Anonymous

    Logged In: NO

    Much of my sys.path is of course irrelevant.

    Would be helpful to get some more info from you anyway.

    May be back later perhaps after the weekend.

    Regards,

    Sverker
    sn@sncs.se

    ps. sorry I am not logged in but I seem to have lost my password at least temporary after I got my new computer.

     
  • Anonymous

    Anonymous - 2008-03-10

    Logged In: YES
    user_id=755552
    Originator: YES

    I feel ashamed...
    I was running my interpreter in the guppy source folder and it used it instead of the installed files.
    Can't believe I made this error twice !

    Anyway, thank you for your reply, it works now.

     
  • Anonymous

    Anonymous - 2008-03-10
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB