[MacPorts] #61792: py-gobject3, py-graph-tool error: Failed to load shared library 'libgdk_pixbuf-2.0.0.dylib'

MacPorts noreply at macports.org
Wed Dec 9 14:45:44 UTC 2020


#61792: py-gobject3, py-graph-tool error: Failed to load shared library
'libgdk_pixbuf-2.0.0.dylib'
-----------------------------------------+--------------------
  Reporter:  essandess                   |      Owner:  (none)
      Type:  defect                      |     Status:  new
  Priority:  Normal                      |  Milestone:
 Component:  ports                       |    Version:  2.6.4
Resolution:                              |   Keywords:
      Port:  py-gobject3, py-graph-tool  |
-----------------------------------------+--------------------

Comment (by michaelld):

 We need to rev-bump dependencies of gobject-introspection (GI here) ...
 that would fix this issue. Same same as a few other related tickets.

 FYI the issue here is with the "GIR" file generated for `gdk-pixbuf2` (and
 possibly other GI-using ports): it lists just `libgdk_pixbuf-2.0.0.dylib`,
 not `/opt/local/lib/libgdk_pixbuf-2.0.0.dylib` with the full path. When GI
 tries to load this library, it fails because there is no reference
 directory starting point for the library as stored in the GIR file. We
 fixed this issue in GI a week ago ... just forgot to rev-bump dependencies
 & then got busy with other stuff.

 One solution is to do something like:
 {{{
 sudo port -f uninstall gdk-pixbuf2
 sudo port install gdk-pixbuf2
 }}}
 and then try the `import graph_tool.all as gt` again .. should work now.

-- 
Ticket URL: <https://trac.macports.org/ticket/61792#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list