<div>Hello,<br></div><div><br></div><div>I have a problem with the python-mapscript library v6.0.1-2ubuntu1 with swig2.0.4 and python 2.7 installed (I'm running ubuntu 12.04)</div><div><br></div><div>If the function layer.getFeature is called, I get the following error:</div>
<div><br></div><div>File "/home/xxx/Documents/xxx_python/xxxx/src/resdbcore/kaarten/mappreview.py", line 306, in gather_data<br>     resultaat = importlayer.getFeature(i)<br>   File "/usr/lib/python2.7/dist-packages/mapscript.py", line 1192, in <lambda><br>
     __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)<br>   File "/usr/lib/python2.7/dist-packages/mapscript.py", line 34, in _swig_getattr<br>     raise AttributeError,name<br> AttributeError: getFeature</div>
<div><br></div><div>the application runs fine on Windows but I try to get it running on linux with eclipse. the only relevant thing I found is that the layer.getFeature function has been temporarily removed from mapscript but should be available again >=6.</div>
<div><br></div><div>altough I have swig2 installed, in the file /usr/lib/python2.7/dist-packages/mapscript.py in the head it is mentioned that this file has been automatically generated by SWIG 1.3.36. Could that be the problem, because AFAIK python-mapscript needs swig2?</div>
<div><br></div><div>Tim</div>