Bug#908198: tilestache does not render mapnik tiles
Daniel Schreiber
daniel.schreiber at hrz.tu-chemnitz.de
Fri Sep 7 10:21:01 BST 2018
Package: tilestache
Version: 1.51.5-3
Severity: wishlist
Dear Maintainer,
tilestache in testing does not work due to API changes in the python
mapnik bindings. There is an upstream bugfix in tilestache which fixes
that issue:
https://github.com/TileStache/TileStache/pull/337/commits/2c0a957d353af87d9057d3ba03c6f3033e0f80d5
Please consider applying this patch until a fixed upstream release
becomes available.
I used a configuration like this:
{
"cache":
{
"name": "Disk",
"path": "/var/cache/stache",
"umask": "0000"
},
"layers":
{
"osm":
{
"provider": {
"name": "mapnik",
"mapfile": "/opt/osm/openstreetmap-carto/project.xml"
},
"projection": "spherical mercator"
}
}
}
I use the openstreetmap-carto style.
Without the patch it throws the following exception:
tilestache-server -c tilestache.cfg -i 0.0.0.0
Error loading Tilestache config:
Traceback (most recent call last):
File "/usr/bin/tilestache-server", line 55, in <module>
app = TileStache.WSGITileServer(config=options.file, autoreload=True)
File "/usr/lib/python2.7/dist-packages/TileStache/__init__.py", line
374, in __init__
self.config = parseConfig(config)
File "/usr/lib/python2.7/dist-packages/TileStache/__init__.py", line
136, in parseConfig
return Config.buildConfiguration(config_dict, dirpath)
File "/usr/lib/python2.7/dist-packages/TileStache/Config.py", line
226, in buildConfiguration
config.layers[name] = _parseConfigLayer(layer_dict, config, dirpath)
File "/usr/lib/python2.7/dist-packages/TileStache/Config.py", line
472, in _parseConfigLayer
layer.provider = _class(layer, **provider_kwargs)
File "/usr/lib/python2.7/dist-packages/TileStache/Mapnik.py", line
94, in __init__
engine = mapnik.FontEngine.instance()
AttributeError: type object 'FontEngine' has no attribute 'instance'
Thank you,
Daniel
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.17.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tilestache depends on:
ii fonts-dejavu-core 2.37-1
ii python 2.7.15-3
ii python-modestmaps 1.4.7-3
ii python-pil 5.2.0-2
ii python-simplejson 3.15.0-1+b1
ii python-werkzeug 0.14.1+dfsg1-1
Versions of packages tilestache recommends:
ii libjs-modestmaps 3.3.6+ds2-1
pn python-blit <none>
ii python-gdal 2.3.1+dfsg-3
ii python-mapnik 1:0.0~20180411-fe47aa15e-3
ii python-psycopg2 2.7.5-2
ii python-pyproj 1.9.5.1-4
ii python-pysolr 3.6.0-1
ii python-shapely 1.6.4-2
Versions of packages tilestache suggests:
pn python-boto <none>
pn python-memcache <none>
pn python-redis <none>
-- no debconf information
--
Daniel Schreiber
Facharbeitsgruppe Systemsoftware
Universitaetsrechenzentrum
Technische Universität Chemnitz
Straße der Nationen 62 (Raum B303)
09111 Chemnitz
Germany
Tel: +49 371 531 35444
Fax: +49 371 531 835444
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5379 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20180907/8f8c9cb2/attachment.bin>
More information about the Pkg-grass-devel
mailing list