#27 "Run EPANET simulation" fails

GHydraulics 2.1.7
closed
Steffen Macke
None
1
2014-03-19
2014-02-09
Steffen Macke
No

I guess that these are the necessary steps to reproduce:

  1. Select Plugins->GHydraulics->Projects->Sample... from the menu
  2. Select Plugins->GHydraulics->Run EPANET simulat from the menu

From http://sdteffen.blogspot.com/2014/01/ghydraulics-216-run-epanet-simulations.html

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:\Users\minty/.qgis2/python/plugins\ghydraulic\ghydraulicsplugin.py", line 383, in runEpanet
output, report, steps = runner.run(t[1])
File "C:\Users\minty/.qgis2/python/plugins\ghydraulic\GHydraulicsModelRunner.py", line 46, in run
self.log(str(subprocess.call([self.epanet, filename, report[1], binary[1]], cwd=tempfile.gettempdir(), stdout=out[0], stderr=err[0])))
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 524, in call
return Popen(popenargs, *kwargs).wait()
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 703, in init
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 839, in _get_handles
p2cread = self._make_inheritable(p2cread)
File "C:\PROGRA~1\QGISDU~1\apps\Python27\lib\subprocess.py", line 878, in _make_inheritable
_subprocess.DUPLICATE_SAME_ACCESS)
WindowsError: [Error 6] The handle is invalid

Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS version:
2.0.1-Dufour Dufour, d94c044

Python path: ['C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\Users\minty/.qgis2/python', 'C:\Users\minty/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QGISDU~1\bin\python27.zip', 'C:\PROGRA~1\QGISDU~1\apps\Python27\DLLs', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\plat-win', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\QGISDU~1\bin', 'C:\PROGRA~1\QGISDU~1\apps\Python27', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\Users\minty\.qgis2\python\plugins\mmqgis/forms', 'C:\PROGRA~1\QGISDU~1\apps\qgis\python\plugins\fTools\tools', 'C:/Users/minty/.qgis2/python/plugins/ghydraulic/samples/d-w/lps']

Discussion

  • Steffen Macke
    Steffen Macke
    2014-02-09

    Which Windows version do you use?
    Could you check that your antivirus software is not interfering here?

     
  • Steffen Macke
    Steffen Macke
    2014-02-12

    There's one more thing that might be relevant: Which QGIS installer did you use? The "plain" QGIS one or the OSGeo4W one? I've tested using the plain one, because my OSGeo4W QGIS crashed.

     
  • Steffen Macke
    Steffen Macke
    2014-02-12

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,8 @@
    +I guess that these are the necessary steps to reproduce:
    +
    +1. Select Plugins->GHydraulics->Projects->Sample... from the menu
    +2. Select Plugins->GHydraulics->Run EPANET simulat from the menu
    +
     From http://sdteffen.blogspot.com/2014/01/ghydraulics-216-run-epanet-simulations.html
    
     An error has occured while executing Python code:
    
     


Anonymous


Cancel   Add attachments