[Mapserver-users] Python/Mapscript

Sean Gillies sgillies at frii.com
Sat Jul 12 13:38:17 PDT 2003


On Saturday, July 12, 2003, at 01:54  PM, Norman Vine wrote:

> Sean Gillies writes:
>>
>> On Saturday, July 12, 2003, at 11:53  AM, Heitzso wrote:
>>>>
>>> I followed the directions at
>>>    http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript
>>> to build the python mapscript module.
>>>
>> Heitzso,
>>
>> Please disregard the directions on the Wiki page.  They are a bit
>> out of date.  Here is the official recipe to compile Python
>> MapScript.
>>
>> 1. Download and compile the latest nightly (pre-4.0) MapServer.
>>     This is important because it will allow you to pick up some
>>     important changes made to the mapscript wrappers since the
>>     4.0beta1 release was made.
>> 2. cd into the mapscript/python directory
>> 3. execute "python setup.py install".  That's it.
>
> Hmm there seems to be a problem ....
> < This is with CVS files >
>
> mapscript_wrap.c: In function `mapObj_processQueryTemplate':
> mapscript_wrap.c:1652: warning: passing arg 2 of 
> `msProcessQueryTemplate' makes integer from pointer without a cast
> mapscript_wrap.c:1652: warning: passing arg 4 of 
> `msProcessQueryTemplate' makes pointer from integer without a cast
> mapscript_wrap.c:1652: too few arguments to function 
> `msProcessQueryTemplate'
>
> < cheap hack to get mapscript to compile is >
> $ cvs diff mapscript.i
> Index: mapscript.i
> ===================================================================
> RCS file: /data2/cvsroot/mapserver/mapscript/mapscript.i,v
> retrieving revision 1.113
> diff -r1.113 mapscript.i
> 397c397,398
> <     return msProcessQueryTemplate(self, names, values, numentries);
> ---
>> //    return msProcessQueryTemplate(self, names, values, numentries);
>>       return msProcessQueryTemplate(self, 0, names, values, 
>> numentries);
>
>
>
>> If MapServer was built properly, the newest setup.py script will
>> find all the required libraries for you.
>
> FYI - This new script does *not* work for me
>
> For anyone else on a unix like system who is having problems building
> python mapscript I keep the files I use at
> http://www.vso.cape.com/~nhv/files/python/mapscript.html
>
> Cheers
>
> Norman
>

Huh.  Well, the truth is that I do not practice what I preach.  The
setup script I use is derived from Norman's mapserver 3.5 setup
script instead of the one that comes with MapServer.  I've been
advocating the one in the distribution only because we gotta have
some consistency for the sake of new users.

Maybe we should just blow away the one that snuck into the
distribution earlier this year and make Norman's the standard
once again.  If we do this we should do it soon before the official
4.0 release.  Any thoughts?

I'll take a look at the bug with the ProcessQueryTemplate.  Somebody
made a change to the C library and mapscript hasn't kept up.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies




More information about the MapServer-users mailing list