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.
John
On Apr 25, 2008, at 2:33 AM, Chen kuja wrote:
hi all,
I just installed the qgis 0.92. But when I try to export
mapfile, a dialogue box popped up("An error has occured while
executing Python code:"). 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
Traceback (most recent call last):
File "C:/qgis/./python/plugins\mapserver_export
\mapserverexport.py", line 81, in run
exporter = Qgis2Map(self.dlg.ui.txtQgisFilePath.text(),
self.dlg.ui.txtMapFilePath.text())
File "C:/qgis/./python/plugins\mapserver_export\ms_export.py", line
37, in __init__
self.qgs = minidom.parse(projectFile)
File "C:\Python25\Lib\xml\dom\minidom.py", line 1913, in parse
return expatbuilder.parse(file)
File "C:\Python25\Lib\xml\dom\expatbuilder.py", line 928, in parse
result = builder.parseFile(file)
File "C:\Python25\Lib\xml\dom\expatbuilder.py", line 204, in
parseFile
buffer = file.read(16*1024)
AttributeError: read
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.
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..
ps.
"C:/qgis/./python/plugins\mapserver_export\mapserverexport.py
C:\Python25\Lib\xml\dom\minidom.py"
two different kinds of slash, will it causes the problem?
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user