Python Mapscript Swig Problem

3 messages Options
Embed this post
Permalink
Alan Boudreault

Python Mapscript Swig Problem

Reply Threaded More More options
Print post
Permalink
Hi,

I would like to know if I am the only one who experienced the following
problem:

When I compile the python mapscript (svn trunk), the swig python wrapper seems
to be wrong. Everytime, I have to open the "mapscript.py" file manually, and
correct the indentation problem at line 718 and 1247. I've also generated the
python mapscript of Mapserver 5.4.2 and the problem is not present.

My swig version: SWIG Version 1.3.36

Alan

--
Alan Boudreault
Mapgears
http://www.mapgears.com
_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Frank Warmerdam

Re: Python Mapscript Swig Problem

Reply Threaded More More options
Print post
Permalink
Alan Boudreault wrote:

> Hi,
>
> I would like to know if I am the only one who experienced the following
> problem:
>
> When I compile the python mapscript (svn trunk), the swig python wrapper seems
> to be wrong. Everytime, I have to open the "mapscript.py" file manually, and
> correct the indentation problem at line 718 and 1247. I've also generated the
> python mapscript of Mapserver 5.4.2 and the problem is not present.
>
> My swig version: SWIG Version 1.3.36

Alan,

You might want to check if my patch:

   http://trac.osgeo.org/mapserver/changeset/9230

is introducing this problem for you.  I found I was having a similar problem
and I *suspect* there is a difference in the effect of the indentation
depending on swig version.

It may prove to be appropriate to back out my change, and for me to upgrade
my swig.  I'm not sure what version of swig I was using on the system in
question.

It might also be possible to restructure this code snippet in pymodule.i to
avoid whatever ambiguity is messing us up.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Alan Boudreault

Re: Python Mapscript Swig Problem

Reply Threaded More More options
Print post
Permalink
Hi Frank,

springmeyer on IRC confirmed that upgrading the swig to a recent release
fixed the problem. I don't know if something could be done to fix that
for all swig version. It would be nice because Debian lenny (stable) and
Ubuntu hardy to karmic use that release. I'll try to take a look in the
next days.

Thanks,
Alan

Frank Warmerdam wrote:

> Alan Boudreault wrote:
>> Hi,
>>
>> I would like to know if I am the only one who experienced the
>> following problem:
>>
>> When I compile the python mapscript (svn trunk), the swig python
>> wrapper seems to be wrong. Everytime, I have to open the
>> "mapscript.py" file manually, and correct the indentation problem at
>> line 718 and 1247. I've also generated the python mapscript of
>> Mapserver 5.4.2 and the problem is not present.
>>
>> My swig version: SWIG Version 1.3.36
>
> Alan,
>
> You might want to check if my patch:
>
>   http://trac.osgeo.org/mapserver/changeset/9230
>
> is introducing this problem for you.  I found I was having a similar
> problem
> and I *suspect* there is a difference in the effect of the indentation
> depending on swig version.
>
> It may prove to be appropriate to back out my change, and for me to
> upgrade
> my swig.  I'm not sure what version of swig I was using on the system in
> question.
>
> It might also be possible to restructure this code snippet in
> pymodule.i to
> avoid whatever ambiguity is messing us up.
>
> Best regards,
>


--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev