adamdsouza1 / gheat

Automatically exported from code.google.com/p/gheat
0 stars 0 forks source link

TypeError - unhashable type #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My system:
- Ubuntu 
- Python 2.6
- Pygame 1.8.1release
- Aspen 0.8
- Numpy

I can run gheat under PIL, but when I try to run with Pygame as a backend I
get a traceback, e.g. when trying to load example.html I get the traceback
below.

An earlier issue report (#9) in this area of code pointed the finger at
Pygame 1.8.0 and recommended using 1.8.1.   I am using 1.8.1 and yet get
the similar error.

BTW, I can run pygame-based examples, so the problem doesn't appear to be
with my pygame installation.

Thanks.

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/aspen/wsgiserver.py", line
625, in communicate
    req.respond()
  File "/usr/local/lib/python2.6/dist-packages/aspen/wsgiserver.py", line
357, in respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/usr/local/lib/python2.6/dist-packages/aspen/website.py", line 53,
in __call__
    response = app(environ, start_response) # WSGI
  File "/home/abc/mapping/gheat/__/lib/python/gheat/__init__.py", line 173,
in wsgi
    tile.rebuild()
  File "/home/abc/mapping/gheat/__/lib/python/gheat/base.py", line 251, in
rebuild
    self.img = self.hook_rebuild(points())
  File "/home/abc/mapping/gheat/__/lib/python/gheat/pygame_.py", line 69,
in hook_rebuild
    tile = self._colorize(tile)
  File "/home/abc/mapping/gheat/__/lib/python/gheat/pygame_.py", line 126,
in _colorize
    if (conf, pixel) not in _computed_opacities:
TypeError: unhashable type: 'array'

Original issue reported on code.google.com by pdx...@gmail.com on 7 Sep 2009 at 4:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Just did a clean install of gheat-0.2 and verified that the problem does indeed 
still
exist.

Original comment by pdx...@gmail.com on 7 Sep 2009 at 6:59

GoogleCodeExporter commented 8 years ago
Has this been resolved?

Original comment by SIL.Linguist@gmail.com on 3 Feb 2012 at 3:09