asselapathirana / epanettools

EPANET calling API for python.
Other
16 stars 13 forks source link

Error 302 #35

Open i-Albert opened 5 years ago

i-Albert commented 5 years ago

when use the codes of usage :

import os, pprint pp=pprint.PrettyPrinter() # we'll use this later. from epanettools.epanettools import EPANetSimulation, Node, Link, Network, Nodes, \ ... Links, Patterns, Pattern, Controls, Control # import all elements needed from epanettools.examples import simple # this is just to get the path of standard examples file = os.path.join(os.path.dirname(simple.file),'Net3.inp') # open an example es=EPANetSimulation(file)

it shows that error 302. Could you help me to deal with this? Thank you. P.S. I'm using python 3.7 with windows 10.

omeersari commented 4 years ago

Hi,

It says in Epanet documentation: File Error 302: cannot open input file.

so its something wrong with your file. Be sure you are doing everything okay in your epanet model.