An Error Occurred No Module Named Mapnik
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Mapnik Python Bindings
of this site About Us Learn more about Stack Overflow the company mapnik 3 python bindings Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Importerror: No Module Named Mapnik
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: install mapnik windows Sign up ImportError: No module named mapnik (Ubuntu 10.10) up vote 1 down vote favorite An error occurred when generate_image.py in /bin/mapnik to display image.png dewirobiatul@dewi:~/bin/mapnik$ ./generate_image.py Traceback (most recent call last): File "./generate_image.py", line 6, in
Mapnik in an attemptto get a WMS supported by Mapnik
Mapnik Tutorial
on Windows XP. Currently, I am usingApache and cgi to host tilecache. When I access "Loading Image..."and also "0/0/1" I get a plain blue tile, but any other zoom levels I get anerror that says:An error occurred: No module named mapnikFile "C:\Program http://stackoverflow.com/questions/8938390/importerror-no-module-named-mapnik-ubuntu-10-10 Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Service.py", line 343,in cgiHandlerformat, image = service.dispatchRequest( params, path_info, req_method,host )File "C:\Program Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Service.py", line 208,in dispatchRequestreturn self.renderTile(tile, params.has_key('FORCE'))File "C:\Program Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Service.py", line 138,in renderTiledata = layer.render(tile, force=force)File "C:\Program Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Layer.py", line 436,in renderimage = self.renderMetaTile(metatile, tile)File "C:\Program Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Layer.py", http://mapnik-users.berlios.narkive.com/XLjCB5wN/mapnik-and-tilecache-no-module-named-mapnik line 396,in renderMetaTiledata = self.renderTile(metatile)File "C:\Program Files\Apache SoftwareFoundation\Apache2.2\cgi-bin\tilecache-2.11\TileCache\Layers\Mapnik.py",line 27, in renderTileimport mapnikI installed Mapnik using OSGeo4W but I had to edit the system PATH variableto get it to work. The path variable is"C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Python26;C:\Python26\Tools\Scripts;C:\mapnik-0.7.1\lib;C:\WMS\mapnik-0.7.1\lib;C:\WMS\proj\bin;C:\Python26\Scripts;"and the Pythonpath is "C:\mapnik-0.7.1\python\2.6\site-packages;"Thanks in advance for any help,Sean Sean Silbaugh 2011-08-17 14:41:37 UTC PermalinkRaw Message I forgot to mention that in a python shell, import mapnik returns with noerrors. Both pythonpath and path are system variables not user variables.Let me know if there is any more information that i can supply in order tohelp diagnose the problem.Thanks again,Sean 1 Reply 26 Views Switch to linear view Disable enhanced parsing Permalink to this page Thread Navigation Sean Silbaugh 2011-08-16 13:37:23 UTC Sean Silbaugh 2011-08-17 14:41:37 UTC about - legalese Loading...
Classic http://osgeo-org.1560.x6.nabble.com/No-module-named-Services-WMS-tilecache-mapnik-openlayers-td3966697.html List Threaded ♦ ♦ Locked http://serverfault.com/questions/395962/mapnik-error-occurred-when-using-command-import-mapnik 1 message kryptonite Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ No module no module named Services.WMS ( tilecache+mapnik+openlayers) Hi, Wondering if anyone could tell me what's going on here: Following the troubleshooting tips , here is the error message I get when i no module named copy the image(pink tiles) url and paste it on the browser. An error occurred: No module named Services.WMS File "C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 323, in cgiHandler format, image = service.dispatchRequest( params, path_info, req_method, host ) File "C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin\TileCache\Service.py", line 180, in dispatchRequest from TileCache.Services.WMS import WMS Image Properties: location : http://localhost/cgi-bin/tilecache.cgi?LAYERS=basice&SRS=EPSG%3A4326&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&BBOX=-90,0,0,90&WIDTH=256&HEIGHT=256type : plain/text Image dimension : 256 px * 256 px Size of File: Unknown(not cached) « Return to TileCache | 1 view|%1 views Loading... Free forum by Nabble Edit this page
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Mapnik error occurred when using command import mapnik up vote 0 down vote favorite I am using centos and installed mapnik on my server. I am following this tutorial http://krisarnold.com/2010/07/14/installing-mapnik-on-centos-5/ But when I test the installation by "import mapnik", it gives me following error. root@dev [~]# python Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapnik Traceback (most recent call last): File "