I know that its not proper. It is standard one which goes with default linux package.<br>I&#39;m wandering if there is a way for upgrading python mapscript module with reference to AGG library.<br><br>--<br>Micha³<br>
<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 12:38 PM, Guillaume Sueur <span dir="ltr">&lt;<a href="mailto:no-reply@neogeo-online.net">no-reply@neogeo-online.net</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;">
<div><div></div><div class="h5">Hi,<br>
<br>
I guess that the mapscript you are using with python is not the proper<br>
one. Did you go to mapserver/mapscript/python and run setup.py install ?<br>
<br>
Note that integration of agg in python-mapscript is not trivial due to<br>
some limitations in the agg lib.<br>
<br>
regards<br>
<br>
Guillaume<br>
<br>
dzizes a écrit :<br>
&gt; HEllo!<br>
&gt;<br>
&gt; I&#39;ve compiled mapserver against AGG on linux. My web application that works<br>
&gt; with mapserver renders nice images with the use of AGG library.<br>
&gt;<br>
&gt; /usr/lib/cgi-bin$ ./mapserv -v<br>
&gt; MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>
&gt; OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV<br>
&gt; SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI<br>
&gt; SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR<br>
&gt; INPUT=GDAL INPUT=SHAPEFILE<br>
&gt;<br>
&gt;<br>
&gt; However, when I try to open simple mapfile with mapscript - python craches.<br>
&gt;<br>
&gt; Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)<br>
&gt; [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt;&gt; import mapscript<br>
&gt;&gt;&gt;&gt; m = mapscript.mapObj(&#39;/tmp/test.map&#39;)<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
&gt;   File &quot;/usr/lib/python2.5/site-packages/mapscript.py&quot;, line 1267, in<br>
&gt; __init__<br>
&gt;     this = _mapscript.new_mapObj(*args)<br>
&gt; _mapscript.MapServerError: loadOutputFormat(): General error message.<br>
&gt; OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn&#39;t<br>
&gt; configured.<br>
&gt;<br>
&gt;  # mapfile output specification<br>
&gt;  OUTPUTFORMAT<br>
&gt;                 NAME png<br>
&gt;                 DRIVER &quot;AGG/PNG&quot;<br>
&gt;                 MIMETYPE &quot;image/png&quot;<br>
&gt;                 IMAGEMODE RGB<br>
&gt;                 EXTENSION &quot;png&quot;<br>
&gt;<br>
&gt;                 FORMATOPTION &quot;TRANSPARENT=ON&quot;<br>
&gt;                 FORMATOPTION &quot;INTERLACE=OFF&quot;<br>
&gt;                 FORMATOPTION &quot;QUANTIZE_FORCE=OFF&quot;<br>
&gt;         END<br>
&gt;<br>
&gt; Any ideas what might be wrong?<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>