Thursday 4 June 2015

flopy

install:
pip install flopy --upgrade

i got stuck to set the path for modflow execution.
it seems that the executional file


>>> mf = flopy.modflow.Modflow(modelname, exe_name='mf2005')
>>> success, buff = mf.run_model()
FloPy is using the following executable to run the model: mf2005
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/flopy/mbase.py", line 375, in run_model
    stdout=sp.PIPE, cwd=self.model_ws)
  File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception


OSError: [Errno 2] No such file or directory



No comments:

Post a Comment