Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pstfrom_mf6.ipynb doesn't run to completion and returns an error #476

Open
gball-usgs opened this issue Jan 22, 2024 · 2 comments
Open

pstfrom_mf6.ipynb doesn't run to completion and returns an error #476

gball-usgs opened this issue Jan 22, 2024 · 2 comments

Comments

@gball-usgs
Copy link

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

@jtwhite79
Copy link
Collaborator

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...

@briochh
Copy link
Collaborator

briochh commented Mar 27, 2024

@gball-usgs, did you get this issue sorted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants