<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You might try to use the non-python version of the Mapserver export plugin. Gary ported from C++ to python, but I have had problems also with the python module, but on OS X. Try removing the plugin with the plugin manager, then deleting the actual plugin from your python plugin directory. I do not know where that directory exists on Windows, so maybe someone else can chime in on that. Afterwards, the 0.1 version of the plugin should be available in the Plugin Manager dialog. That is the C++ version.<div><br></div><div>John<br><div><br><div><div>On Apr 25, 2008, at 2:33 AM, Chen kuja wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">hi all, <br> I just installed the qgis 0.92. But when I try to export mapfile, a dialogue box popped up("<span style="color: rgb(255, 0, 0);">An error has occured while executing Python code:</span>"). I've installed the python1.5.2 before installing qgis. Also, I chose c:\qgis as Qgis's folder. But stil, same error message like <br> <br>Traceback (most recent call last):<br> File "C:/qgis/./python/plugins\mapserver_export\mapserverexport.py", line 81, in run<br> exporter = Qgis2Map(self.dlg.ui.txtQgisFilePath.text(), self.dlg.ui.txtMapFilePath.text())<br> File "C:/qgis/./python/plugins\mapserver_export\ms_export.py", line 37, in __init__<br> self.qgs = minidom.parse(projectFile)<br> File "C:\Python25\Lib\xml\dom\minidom.py", line 1913, in parse<br> return expatbuilder.parse(file)<br> File "C:\Python25\Lib\xml\dom\expatbuilder.py", line 928, in parse<br> result = builder.parseFile(file)<br> File "C:\Python25\Lib\xml\dom\expatbuilder.py", line 204, in parseFile<br> buffer = file.read(16*1024)<br> AttributeError: read<br><br><br>My OS is winXp sp2. Besides, same thing happened after I installed qgis on my roommate's pc which has nothing to do with any kind of gis software.<br>I know nothing about python, and I've tried almost everything I could find by google. So any helpful information would be appreciated. I need this to accomplish my graduating design..so plz..<br> <br>ps.<br>"C:/qgis/./python/plugins\mapserver_export\mapserverexport.py<br>C:\Python25\Lib\xml\dom\minidom.py"<br>two different kinds of slash, will it causes the problem?<br><br> _______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div></div></body></html>