I am stumbling with flopy to locate the mf6 executable on my Mac.
I define the location with a relative path, as per documentation (Relative path to MODFLOW 6 executable from the simulation working folder).
exe_name='../bin/mf6'
But when I run the model I get:
FileNotFoundError: [Errno 2] No such file or directory: '../bin/mf6'
When in the next code cell I do:
ls ../bin/
I get
mf6* mp7*
So mf6 clearly exist in the right location and is executable. I can even run it
!../bin/mf6
Gives
ERROR REPORT: 1. mf6: mfsim.nam is not present in working directory.
When I move this mf6 to the same directory as the notebook and change exe_name to
path = os.getcwd()
exe_name=path + '/mf6'
But then it is an absolute path.
My colleague claims that
exe_name='../bin/mf6.exe'
works on his Windows machine.
Is this a Mac problem?
I am stumbling with flopy to locate the mf6 executable on my Mac.
I define the location with a relative path, as per documentation (
Relative path to MODFLOW 6 executable from the simulation working folder).exe_name='../bin/mf6'But when I run the model I get:
FileNotFoundError: [Errno 2] No such file or directory: '../bin/mf6'When in the next code cell I do:
ls ../bin/I get
mf6* mp7*So mf6 clearly exist in the right location and is executable. I can even run it
!../bin/mf6Gives
ERROR REPORT: 1. mf6: mfsim.nam is not present in working directory.When I move this mf6 to the same directory as the notebook and change exe_name to
path = os.getcwd()exe_name=path + '/mf6'But then it is an absolute path.
My colleague claims that
exe_name='../bin/mf6.exe'works on his Windows machine.
Is this a Mac problem?