You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example notebook pstfrom_mf6.ipynb fails to run completely due to an error originating from os_utils.py. When trying to run the notebook it fails when trying to run the model with noptmax = 0.
A non-zero value is returned at line 125 : ret_val = os.system(cmd_str)
I tried two different environments: a fresh install of everything required and the environment I've been using with flopy and pyemu for the past year.
Exception Traceback (most recent call last)
Cell In[48], [line 157]
[154] pst.write(os.path.join(pf.new_d, "freyberg.pst"))
[156] # run with noptmax = 0
--> [157] pyemu.os_utils.run("{0} freyberg.pst".format(
[158] os.path.join("pestpp-ies")), cwd=pf.new_d)
[160] # make sure it ran
[161] res_file = os.path.join(pf.new_d, "freyberg.base.rei")
File c:\Users\gball.conda\envs\pyemu\Lib\site-packages\pyemu\utils\os_utils.py:126, in run(cmd_str, cwd, verbose)
124 if "window" in platform.platform().lower():
125 if ret_val != 0:
--> 126 raise Exception("run() returned non-zero: {0}".format(ret_val))
127 else:
128 estat = os.WEXITSTATUS(ret_val)
Exception: run() returned non-zero: 1
The text was updated successfully, but these errors were encountered:
do you have pestpp-ies and mf6 in your path or in the template dir that gets created? I dont think that notebook goes to any great lengths to help you get the correct bins in the correct locations...if you wanna better experience playing with pstfrom, you might want to checkout the gmdsi notebooks. there's machinery in those notebooks to get the binaries setup for you...
The example notebook pstfrom_mf6.ipynb fails to run completely due to an error originating from os_utils.py. When trying to run the notebook it fails when trying to run the model with noptmax = 0.
A non-zero value is returned at line 125 :
ret_val = os.system(cmd_str)
I tried two different environments: a fresh install of everything required and the environment I've been using with flopy and pyemu for the past year.
Exception Traceback (most recent call last)
Cell In[48], [line 157]
[154] pst.write(os.path.join(pf.new_d, "freyberg.pst"))
[156] # run with noptmax = 0
--> [157] pyemu.os_utils.run("{0} freyberg.pst".format(
[158] os.path.join("pestpp-ies")), cwd=pf.new_d)
[160] # make sure it ran
[161] res_file = os.path.join(pf.new_d, "freyberg.base.rei")
File c:\Users\gball.conda\envs\pyemu\Lib\site-packages\pyemu\utils\os_utils.py:126, in run(cmd_str, cwd, verbose)
124 if "window" in platform.platform().lower():
125 if ret_val != 0:
--> 126 raise Exception("run() returned non-zero: {0}".format(ret_val))
127 else:
128 estat = os.WEXITSTATUS(ret_val)
Exception: run() returned non-zero: 1
The text was updated successfully, but these errors were encountered: