[Tilecache] traceback error

Jacob Marble jacobmarble at gmail.com
Tue Dec 22 18:34:41 EST 2009


Hello, I'm just starting to use tilecache.  I think I have found a
bug, which I would like to discuss.  I have verified that this exists
in 2.10 and current SVN (397).  My environment is Ubuntu 9.10 with
repository-packaged python-mapscript 5.4.2 and Python 2.6.4.

I'm running tilecache this way:
./tilecache_http_server.py -t
One in 10 or 20 tiles causes the following to go to stdout, and I
don't see any consistency (might be the threads):

Traceback (most recent call last):
  File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run
    self.result = application(self.environ, self.start_response)
  File "/home/webmap/tilecache-2.10/TileCache/Service.py", line 374, in wsgiApp
    return wsgiHandler(environ, start_response, theService)
  File "/home/webmap/tilecache-2.10/TileCache/Service.py", line 307,
in wsgiHandler
    "".join(traceback.format_tb(sys.exc_traceback)))]
AttributeError: 'module' object has no attribute 'exc_traceback'

In TileCache/Service.py, there are references to sys.exc_traceback,
which has been deprecated since Python 1.5
(http://docs.python.org/library/sys.html#sys.exc_traceback).
Following the link should make this clear.  It seems that
sys.exc_traceback and friends were *removed* in about Python 2.6, or
perhaps just in Ubuntu 9.10.  Either way, I think this is a good way
to fix the problem in a backwards-compatible way.

Jacob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: traceback.patch
Type: text/x-patch
Size: 1548 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20091222/4b5bebfe/traceback.bin


More information about the Tilecache mailing list