Travis CI — Installing/linking libvips and pyvips

How do I link vips and pyvips on Travis CI? Using brew to install both on Travis, but am getting two errors:

  • OSError: cannot load library ‘libgobject-2.0.dylib’: dlopen(libgobject-2.0.dylib, 2): image not found. Additionally, ctypes.util.find_library() did not manage to locate a library called ‘libgobject-2.0.dylib’
  • import _libvips
    ModuleNotFoundError: No module named ‘_libvips’