Well, I've fixed this, but I had to remove the entire build dir and recompile. I'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't prove it, and I don't have the time to keep re-testing, but it appears that neither running "make clean", 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"><<a href="mailto:randre@gmail.com">randre@gmail.com</a>></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'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...<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'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:<br><br>
_mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named 'roadsPG'.<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 "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.<br>
<br>Thanks,<br><br>Roger<br><font color="#888888">--<br>
</font></blockquote></div><br>