Closed phargogh closed 3 years ago
Homebrew-installed proj
(osgeo/osgeo4mac/osgeo-proj
) also interferes with the binaries we ship, at least on my mac. See #108
Homebrew-installed geos
also seems to be an issue.
Note to self: working on this over on https://github.com/phargogh/invest/tree/bugfix/10-homebrew-interferes-with-pyinstaller
Closing after #358
When testing out the InVEST 3.8.0 release binaries, I could launch and run the models by reaching into the application and running the compiled
invest
binary. But then if I tried running a model that loaded geometries from a vector, the model would segfault. The segfault exception whenn_workers=-1
looked like this:After digging into this some more, it turned out that my homebrew install had GEOS 3.7.3 and GDAL 3.0.1 installed due to a homebrew-managed QGIS install, and that the InVEST binaries were clearly loading the GEOS binaries from the homebrew
Cellar
(verified by sampling the files that theinvest
process had open, visible in Activity Monitor). See the attached sample log for more information.My questions around this are:
Cellar
and not from the bundled binaries?It would appear that pyinstaller modifies
LD_LIBRARY_PATH
... maybe that has something to do with this?