[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:39:30 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
 Keywords:             |       Port:  py-gobject3, py-graph-tool
-----------------------+----------------------------------------
 The python package {{{py-gobject3}}} (and its dependency {{{py-graph-
 tool}}} fail with this error:

 {{{
 import graph_tool.all as gt

 …

 import gi
 gi.require_version('Gtk', '3.0')
 from gi.repository import Gtk, Gdk, GdkPixbuf

 ** (process:56675): WARNING **: 09:29:10.365: Failed to load shared
 library 'libgdk_pixbuf-2.0.0.dylib' referenced by the typelib:
 dlopen(libgdk_pixbuf-2.0.0.dylib, 9): image not found
 ---------------------------------------------------------------------------
 AssertionError                            Traceback (most recent call
 last)
 <ipython-input-3-8850e2a9ffc3> in <module>
 ----> 1 from gi.repository import Gtk, Gdk, GdkPixbuf

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load_unlocked(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_unlocked(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_backward_compatible(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/importer.py in load_module(self, fullname)
     142             # https://bugzilla.gnome.org/show_bug.cgi?id=656314
     143             for dep in
 repository.get_immediate_dependencies(namespace):
 --> 144                 importlib.import_module('gi.repository.' +
 dep.split("-")[0])
     145             dynamic_module = load_overrides(introspection_module)
     146

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py
 in import_module(name, package)
     125                 break
     126             level += 1
 --> 127     return _bootstrap._gcd_import(name[level:], package, level)
     128
     129

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _gcd_import(name, package, level)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load_unlocked(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_unlocked(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_backward_compatible(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/importer.py in load_module(self, fullname)
     142             # https://bugzilla.gnome.org/show_bug.cgi?id=656314
     143             for dep in
 repository.get_immediate_dependencies(namespace):
 --> 144                 importlib.import_module('gi.repository.' +
 dep.split("-")[0])
     145             dynamic_module = load_overrides(introspection_module)
     146

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py
 in import_module(name, package)
     125                 break
     126             level += 1
 --> 127     return _bootstrap._gcd_import(name[level:], package, level)
     128
     129

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _gcd_import(name, package, level)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _find_and_load_unlocked(name, import_)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_unlocked(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py
 in _load_backward_compatible(spec)

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/importer.py in load_module(self, fullname)
     143             for dep in
 repository.get_immediate_dependencies(namespace):
     144                 importlib.import_module('gi.repository.' +
 dep.split("-")[0])
 --> 145             dynamic_module = load_overrides(introspection_module)
     146
     147         dynamic_module.__file__ = '<%s>' % fullname

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/overrides/__init__.py in
 load_overrides(introspection_module)
     116             return introspection_module
     117
 --> 118         override_mod =
 importlib.import_module(override_package_name)
     119
     120     finally:

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py
 in import_module(name, package)
     125                 break
     126             level += 1
 --> 127     return _bootstrap._gcd_import(name[level:], package, level)
     128
     129

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/overrides/GdkPixbuf.py in <module>
      30
      31 @override
 ---> 32 class Pixbuf(GdkPixbuf.Pixbuf):
      33
      34     @classmethod

 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/gi/overrides/__init__.py in override(type_)
     193
     194         g_type = info.get_g_type()
 --> 195         assert g_type != TYPE_NONE
     196         if g_type != TYPE_INVALID:
     197             g_type.pytype = type_

 AssertionError:
 }}}

 I confirm that the library libgdk_pixbuf-2.0.0.dylib exists and is
 installed by the port {{{gdk-pixbuf2}}}:

 {{{
 ls /opt/local/lib/libgdk_pixbuf-2.0.0.dylib
 /opt/local/lib/libgdk_pixbuf-2.0.0.dylib*

 port provides /opt/local/lib/libgdk_pixbuf-2.0.0.dylib
 /opt/local/lib/libgdk_pixbuf-2.0.0.dylib is provided by: gdk-pixbuf2
 }}}

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


More information about the macports-tickets mailing list