On Sun, 2009-07-19 at 15:39 -0400, Joseph Jira wrote:
> The error I get in my browser (Safari/Firefox) when trying to access:
> An error occurred:
> dlopen(/Library/Frameworks/Mapnik.framework/Versions/Current/Python/2.5/site-packages/mapnik/_mapnik.so,
> 2): no suitable image found. Did find:
> /Library/Frameworks/Mapnik.framework/Versions/Current/Python/2.5/site-packages/mapnik/_mapnik.so:
> mach-o, but wrong architecture File
> "/Library/Python/2.5/site-packages/TileCache-2.10-py2.5.egg/TileCache/Service.py",
> line 256, in modPythonHandler host ) File
> "/Library/Python/2.5/site-packages/TileCache-2.10-py2.5.egg/TileCache/Service.py",
> line 208, in dispatchRequest return self.renderTile(tile,
> params.has_key('FORCE')) File
> "/Library/Python/2.5/site-packages/TileCache-2.10-py2.5.egg/TileCache/Service.py",
> line 138, in renderTile data = layer.render(tile, force=force) File
> "/Library/Python/2.5/site-packages/TileCache-2.10-py2.5.egg/TileCache/Layer.py",
> line 443, in render return self.renderTile(tile) File
> "/Library/Python/2.5/site-packages/TileCache-2.10-py2.5.egg/TileCache/Layers/Mapnik.py",
> line 27, in
renderTile import mapnik File
"/Library/Frameworks/Mapnik.framework/Versions/Current/Python/2.5/site-packages/mapnik/__init__.py",
line 23, in <module> from _mapnik import *
>
> Now, looking at my errors, one thing sticks out at me: mach-o, but
> wrong architecture So now I am more confused, is my overall strategy
> wrong (i.e. using Tilecache/Mod_python/Mac OS X)? If not, what may be
> the remedy? If my strategy is going in the wrong direction, what might
> be the best way to render custom data (not OSM) tiles using Mapnik,
> and Mac OS X?
I believe the issue is that the default Apache server runs as a 64 bit
executable but your mapnik library is compiled as 32 bit. Several people
have run into similar issues before[1]. One fairly simple fix is to make
your Apache instance run as a 32 bit program[2].
Jon
1: http://trac.mapnik.org/ticket/160
2: http://blog.captnswing.net/2009/04/19/python-mod_wsgi-64bit-mac-os-x-105/
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users