<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Borys,</div><div><br></div>I was intrigued by the new mapfile plugin, so gave it a test run this morning on a mapserver file I have. Unfortunately, it threw an error and was not able to load the layers. I cannot tell which layer is causing the problem, but even selecting a single layer from the list kicks out the same error. Any ideas on how to fix this? I'm on OS X 10.6.1 and using William Kyngesburye's mapscript framework. Import mapscript from a python shell appears to load the module fine.<div><br></div><div>Here is the output:<div><br></div><div><div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><!--StartFragment--><span style=" color:#ff0000;">An error has occured while executing Python code:</span><br><br>Traceback (most recent call last):<br> File "/Users/jctull/.qgis//python/plugins/mapfile_tools/mapfile_tools.py", line 58, in runLayer<br> self.mapfileLayer.run()<br> File "/Users/jctull/.qgis//python/plugins/mapfile_tools/mapfile_layer.py", line 82, in run<br> self.renderMapfile()<br> File "/Users/jctull/.qgis//python/plugins/mapfile_tools/mapfile_layer.py", line 111, in renderMapfile<br> img = self.maprenderer.render(bbox, (renderer.width(), renderer.height()))<br> File "/Users/jctull/.qgis//python/plugins/mapfile_tools/mapfile_renderer.py", line 52, in render<br> mapImage = wms.draw()<br> File "/Library/Python/2.6/site-packages/mapscript.py", line 1421, in draw<br> def draw(*args): return _mapscript.mapObj_draw(*args)<br>MapServerError: msDrawMap(): Image handling error. Unable to initialize image.<br>msCalculateScale(): General error message. Invalid image extent, minx=0.000000, miny=0.000000, maxx=0.000000, maxy=0.000000.<br><br>Python version:<br>2.6.1 (r261:67515, Jul 7 2009, 23:51:51) <br>[GCC 4.2.1 (Apple Inc. build 5646)]<br><br>Python path:['/Applications/qgis1.4.0.app/Contents/MacOS/share/qgis/python', '/Users/jctull/.qgis//python/plugins', '/Applications/qgis1.4.0.app/Contents/MacOS/share/qgis/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6/site-packages', '/Library/Frameworks/GEOS.framework/Versions/3/Python/2.6/site-packages/geos', '/Library/Frameworks/GDAL.framework/Versions/1.6/Python/2.6/site-packages', '/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg', '/Library/Python/2.6/site-packages/OWSLib-0.3.1-py2.6.egg', '/Library/Python/2.6/site-packages/py2app-0.3.6-py2.6.egg', '/Library/Python/2.6/site-packages/lxml-2.2.2-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/nose-0.11.1-py2.6.egg', '/Library/Python/2.6/site-packages/PythonCard-0.8.2-py2.6.egg', '/Library/Python/2.6/site-packages/pyamg-1.0.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/pyparsing-1.5.2-py2.6.egg', '/Library/Python/2.6/site-packages/scipy-0.7.1-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/rpy2-2.0.7-py2.6-macosx-10.6-universal.egg', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode', '/Applications/qgis1.4.0.app/Contents/MacOS/share/qgis/python/plugins/fTools/tools', '/Users/jctull/.qgis/python/plugins/GdalTools/tools']<!--EndFragment--></div></div></div></body></html>