[Mapserver-users] 3.7 nightly and python/mapscript errors

Jerritt Collord collord at linuxfund.org
Mon Apr 14 21:04:53 EDT 2003


SWIG stuff I wouldn't know where to start tracking down! The mapfile
should be fine--I use it in all other interfaces okay--and it doesn't
smell like that kind of problem.

Thanks,

Jerritt

gurgle:/usr/lib/cgi-bin# ./testpy.py 
Traceback (most recent call last):
  File "./testpy.py", line 14, in ?
    drawmap()
  File "./testpy.py", line 11, in drawmap
    out = myimage.saveImage("euro.png",MS_PNG,50,0,50)
  File "/usr/lib/python2.1/site-packages/mapscript.py", line 1770, in
<lambda>    __getattr__ = lambda self, name: _swig_getattr(self,
imageObj, name)  File "/usr/lib/python2.1/site-packages/mapscript.py",
line 19, in _swig_getattr    raise AttributeError,name
AttributeError: saveImage

gurgle:/usr/lib/cgi-bin# cat testpy.py 
#!/usr/bin/python2.1
import mapscript
def drawmap():
 mymap = mapscript.mapObj("/usr/lib/cgi-bin/maps/europe.map")
 mymap.width=600
 mymap.height=400
 myimage=mymap.draw()
 out = myimage.saveImage("euro.png",MS_PNG,50,0,50)
 return out
drawmap()



More information about the mapserver-users mailing list