[MacPorts] #58122: gexiv2: Python module fails to load

MacPorts noreply at macports.org
Mon May 31 23:58:25 UTC 2021


#58122: gexiv2: Python module fails to load
------------------------+----------------------
  Reporter:  mklein-de  |      Owner:  dbevans
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  gexiv2     |
------------------------+----------------------

Comment (by ctreleaven):

 I am seeing this error with Gramps 5.1.3:

 {{{
 $ gramps --safe
 dbus[15542]: Dynamic session lookup supported but failed: launchd did not
 provide a socket path, verify that org.freedesktop.dbus-session.plist is
 loaded!

 ** (gramps:15542): WARNING **: 14:05:14.616: Failed to load shared library
 './gexiv2/libgexiv2.2.dylib' referenced by the typelib:
 dlopen(./gexiv2/libgexiv2.2.dylib, 9): image not found
 ERROR: Failed reading plugin registration gramplet.gpr.py
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/gramps/gen/plug/_pluginreg.py", line 1195, in scan_dir
     exec (compile(stream, filename, 'exec'),
   File "gramplet.gpr.py", line 409, in <module>
   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
   File "<frozen importlib._bootstrap>", line 975, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
   File "<frozen importlib._bootstrap>", line 618, in
 _load_backward_compatible
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/gi/importer.py", line 145, in load_module
     dynamic_module = load_overrides(introspection_module)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/gi/overrides/__init__.py", line 118, in load_overrides
     override_mod = importlib.import_module(override_package_name)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py",
 line 127, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/gi/overrides/GExiv2.py", line 110, in <module>
     if not GExiv2.initialize():
 gi.repository.GLib.GError: g-invoke-error-quark: Could not locate
 gexiv2_initialize: dlopen(./gexiv2/libgexiv2.2.dylib, 9): image not found
 (1)
 }}}

 On my system, the relevant library is at:

 {{{
 $ locate libgexiv2.2.dylib
 /opt/local/lib/libgexiv2.2.dylib
 }}}

 so it appears that it is trying  to load from the wrong location, perhaps.

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


More information about the macports-tickets mailing list