[mapserver-users] Python mapscript throwing "PostGIS support is not available" error

Roger André randre at gmail.com
Thu Jan 28 13:18:56 EST 2010


Hi All,

I'm getting kinda stumped by this error.  I'm running MapServer-5.6.0,
Python 2.6, postgresql-8.4.2, and postgis-1.4.1 on an Ubuntu 9.10 box.  I've
compiled mapserver with PostGIS support...

$ /usr/lib/cgi-bin/mapserv -v
MapServer version 5.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

and I'm able to make a regular old "mode=map" request via cgi to a layer
that is coming from PostGIS.  However, when I try to access the same layer
via Python mapscript, I get the following error:

_mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw
layer named 'roadsPG'.
msPostGISLayerOpen(): General error message. PostGIS support is not
available.

I had omitted to include Postgis support in my MapServer build initially,
but did a "make clean" and rebuilt it.  I also re-ran the Python mapscript
install afterwards.  Is there something else I need to do to clean out the
old mapscript module?  I'm no distutils expert, so any help would be
appreciated.

Thanks,

Roger
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100128/f5559531/attachment.html


More information about the mapserver-users mailing list