Hi Jill,

The mapnik.ogcserver package is not on your python's path.

Try this from a python interpreter:

import sys
print sys.path

This will tell you where python is looking for packages. You can either modify 
python's path or make sure mapnik.ogcserver is in one of the directories shown 
in sys.path.

Hope this helps!


> -----Mensaje original-----
> De: [email protected]
> [mailto:[email protected]] En nombre de Jill
> Enviado el: miƩrcoles, 21 de septiembre de 2011 19:19
> Para: [email protected]
> Asunto: [Mapnik-users] Unable to make Mapnik work as WMS OGC server
>
> Hello!
>
> I installed Mapnik with OSGeo4W, so I have Mapnik v0.7.0 and
> Python 2.5.2...
> Mapnik seems to work from the OsGeo4W shell, in fact I
> completed the first
> Mapnik tutorial on the website. After that, I managed to
> install the Mapnik
> OGCServer package (having previously installed PIL v1.1.7,
> lxml v2.2 and
> Jon's python modules).
>
> On the other hand, I have an Apache 2.2 server running, and I tried to
> follow these steps to get the wms service running:
>
> http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide
>
> but I always get this message in Apache's log:
>
> "[Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1]
> Premature end of
> script headers: mapnikwms.py
> [Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1] 'import
> site' failed;
> use -v for traceback\r
> [Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1]
> Traceback (most recent
> call last):\r
> [Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1]   File
> "C:/appserv/Apache2.2/htdocs/mapnikserv/mapnikwms.py", line
> 7, in <module>\r
> [Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1]     from
> mapnik.ogcserver.cgiserver import Handler\r
> [Wed Sep 21 18:59:39 2011] [error] [client 127.0.0.1]
> ImportError: No module
> named mapnik.ogcserver.cgiserver\r"
>
> What am I missing? Please I need help with this issue, it is
> the first time
> I try to setup a WMS server...
>
> Thanks!
>
> --
> View this message in context:
> http://gis.638310.n2.nabble.com/Unable-to-make-Mapnik-work-as-
> WMS-OGC-server-tp6816958p6816958.html
> Sent from the Mapnik Users mailing list archive at Nabble.com.
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to