Open westb2 opened 1 month ago
As an update, the actual exception that pf-mask-to-pfsol is throwing is:
b"dyld[2241]: Library not loaded: @rpath/libpftools.dylib\n Referenced from: <9D55BCC4-B866-3AD1-8CC5-7C9A5E78E6F3> [/Users/ben/parflow_installation/parflow/bin/pfmask-to-pfsol](https://file+.vscode-resource.vscode-cdn.net/Users/ben/parflow_installation/parflow/bin/pfmask-to-pfsol)\n Reason: tried: '/usr/local/lib/libpftools.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libpftools.dylib' (no such file), '/usr/local/lib/libpftools.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/libpftools.dylib' (no such file), '/usr/local/lib/libpftools.dylib' (no such file), '/usr/lib/libpftools.dylib' (no such file, not in dyld cache)\n"
This exception was being masked because there was a python error being thrown when trying to handle it.
I was able to fix this by creating a symbolic link within /usr/local/lib to the location my libpftools got installed to. For me this looked like
sudo ln -s ~/parflow_installation/parflow/bin/libpftools.dylib /usr/local/lib/libpftools.dylib
I don't imagine this is the best long term solution. During my parflow install I was careful to set all the required environment variables. Perhaps I missed a step, or perhaps something about the build needs to be updated to support dylib cache linking on newer macs.
When running the example notebooks I get the following error
Cell code that gives error has the code:
mask_solid_paths = st.write_mask_solid(mask=mask, grid=grid, write_dir=static_write_dir)
Error is