Well, I&#39;ve fixed this, but I had to remove the entire build dir and recompile.  I&#39;m guessing that when ./configure is run the first time, it creates some sort of mapscript file used later by distutils when Python mapscript is built.  I can&#39;t prove it, and I don&#39;t have the time to keep re-testing, but it appears that neither running &quot;make clean&quot;, or recompiling makes a difference once that file is present.<br>
--<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 10:18 AM, Roger André <span dir="ltr">&lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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><font color="#888888">--<br>
</font></blockquote></div><br>