Hi All,<br><br>I&#39;m getting kinda stumped by this error.  I&#39;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&#39;ve compiled mapserver with PostGIS support...<br><br>

$ /usr/lib/cgi-bin/mapserv -v<br>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<br>

<br>and I&#39;m able to make a regular old &quot;mode=map&quot; 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:<br><br>

_mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named &#39;roadsPG&#39;.<br>msPostGISLayerOpen(): General error message. PostGIS support is not available.<br><br>I had omitted to include Postgis support in my MapServer build initially, but did a &quot;make clean&quot; 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&#39;m no distutils expert, so any help would be appreciated.<br>
<br>Thanks,<br><br>Roger<br>--<br>