graph-tool cannot find gvc library when it's installed in a non-standard location
The problem occurred when another, older version of gvc was found in a standard location, while the version I was looking for was installed into a custom folder, specified in LD_LIBRARY_PATH.
My solution to this, which unfortunately isn't elegant, was to hardcode the library name into draw/ init .py instead of using ctypes.util.find_library. The problem with find_library is that it doesn't consult LD_LIBRARY_PATH, making the search algorithm rather inflexible.
libgv = ctypes.CDLL("libgvc.so.6.0.0")
libname = ctypes.util.find_library("gvc")
if libname is None:
raise OSError()
libgv = ctypes.CDLL(libname)
Hopefully, something more robust can be done about this. Thanks!