Ticket #1445 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

mapserver export fails in Windows XP

Reported by: neteler Owned by: marcopx
Priority: critical: causes crash or data corruption Milestone:
Component: Python plugins and bindings Version: 0.11.0
Keywords: Cc: forster@…
Platform Version: Platform: Windows
Must Fix for Release: No Awaiting user input: no

Description

Hi,

the following message appears when trying to export a SHAPE layer to mapfile:

Fehler bei der Ausführung von Python-Code:

Traceback (most recent call last):
  File "C:/Programme/Quantum GIS\./python/plugins\mapserver_export\mapserverexport.py", line 81, in run
    exporter = Qgis2Map(str(self.dlg.ui.txtQgisFilePath.text()), str(self.dlg.ui.txtMapFilePath.text()))
  File "C:/Programme/Quantum GIS\./python/plugins\mapserver_export\ms_export.py", line 38, in __init__
    self.qgs = minidom.parse(projectFile)
  File "C:/Programme/Quantum GIS\./python\xml\dom\minidom.py", line 1913, in parse
    return expatbuilder.parse(file)
  File "C:/Programme/Quantum GIS\./python\xml\dom\expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: ''

Python-Version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Python-Pfad:['C:/Programme/Quantum GIS\\./python', 'C:/Dokumente und Einstellungen/rf/.qgis//python/plugins', 'C:/Programme/Quantum GIS\\./python/plugins', 'C:\\Programme\\ArcGIS\\bin', 'C:\\Programme\\Quantum GIS\\python25.zip', 'C:\\Python25\\Lib', 'C:\\Python25\\DLLs', 'C:\\Python25\\Lib\\lib-tk', 'C:\\Programme\\Quantum GIS', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages']

Apparently the dot in the path breaks the functionality (the files are present).

Change History

Changed 5 years ago by neteler

  • cc forster@… added

Changed 5 years ago by jef

  • owner changed from nobody to marcopx

seems like a packaging issue. works nicely with the msvc build and a local python install.

Changed 5 years ago by marcopx

I made a simple test: I exported a shp file and it worked fine. I asked to Leo (Lami) to test it too. I would wait for his tests before to decide if it is a real package bug.

Marco

Changed 5 years ago by marcopx

  • status changed from new to closed
  • resolution set to worksforme

Leo reported no errors too. I'm closing the ticket as works for me.

Marco

Changed 5 years ago by neteler

Mhh, I am suprised that I then see a ghost error... well, ok. I hope for the next package then.

Changed 4 years ago by anonymous

  • milestone Version 1.0.0 deleted

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.