Giter VIP home page Giter VIP logo

Comments (6)

rjanke20 avatar rjanke20 commented on August 15, 2024

I installed MTP3r1 to c:\EPANET_UI_Testing as well as to just c:, in both cases the simulation failed with the same message "File Error 305...".

from swmm-epanet_user_interface.

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

I have set up a new virtual machine environment for testing installed versions of this software without interference from development environments or other installed software. It is easy to roll back to a "clean" version of the virtual machine so previous testing does not affect the current test.

In my first test of EPANET-UI-MTP3r1 on the virtual machine, I installed in C:\Program Files (x86)\EPANET-UI
It is not displaying the map. I have entered that as a separate issue.

When I ignore the fact that the map is not displaying and load the first test project Net1.inp, the model runs correctly via Project/Run Simulation or via the "lightning bolt" Run Simulation toolbar button.

Originally I thought the issue was with spaces in the path, but now it is not clear to me what is causing this issue.

I will continue on a path toward understanding the moment when this error can happen and see if I can find a fix even though I have so far not been able to reproduce the error in the test environment. The error message itself seems to be coming from inside the model code.

from swmm-epanet_user_interface.

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

"File Error 305: cannot open hydraulics file" occurs when the user does not have write permission to the folder where EPANET-UI is installed. This is a good clue for working toward a solution. A temporary workaround might be installing to a folder in the user's home folder.

from swmm-epanet_user_interface.

michaeltryby avatar michaeltryby commented on August 15, 2024

EPANET tries to open and write to a temporary hydraulics file. We probably should be doing this in the system temporary directory and not where the UI is installed.

from swmm-epanet_user_interface.

eladsal avatar eladsal commented on August 15, 2024

Windows has special locations for applications data and files, the AppData folder. At the run command line (Win-R) type %appdata%. Inside the AppData folder you can find the temp directory, try %temp%.

from swmm-epanet_user_interface.

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

EPANET-UI-MTP3r2 installer is now uploaded into the MTP 3 release. This version tries to change into the directory containing the input file before running the model. If that does not work, it tries changing to the system temporary directory. This has fixed the issue in testing, so I am closing this issue.

from swmm-epanet_user_interface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.