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>