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

MacPorts noreply at macports.org
Sun Feb 24 09:03:34 UTC 2019


#58122: gexiv2: Python module fails to load
-----------------------+--------------------
 Reporter:  mklein-de  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:             |       Port:  gexiv2
-----------------------+--------------------
 The python module of gexiv2 fails to load both in python 2.7 and python
 3.6 with an AttributeError:

 {{{
 $ python2.7 -c "from gi.repository import GExiv2"
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/gi/importer.py", line 146, in load_module
     dynamic_module = load_overrides(introspection_module)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/gi/overrides/__init__.py", line 125, in load_overrides
     override_mod = importlib.import_module(override_package_name)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py",
 line 37, in import_module
     __import__(name)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/gi/overrides/GExiv2.py", line 36, in <module>
     class Metadata(GExiv2.Metadata):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/gi/module.py", line 138, in __getattr__
     self.__name__, name))
 AttributeError: 'gi.repository.GExiv2' object has no attribute 'Metadata'
 }}}

 {{{
 $ python3.6 -c "from gi.repository import GExiv2"
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
   File "<frozen importlib._bootstrap>", line 955, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
   File "<frozen importlib._bootstrap>", line 626, in
 _load_backward_compatible
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/gi/importer.py", line 146, in load_module
     dynamic_module = load_overrides(introspection_module)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/gi/overrides/__init__.py", line 125, in load_overrides
     override_mod = importlib.import_module(override_package_name)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py",
 line 126, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/gi/overrides/GExiv2.py", line 36, in <module>
     class Metadata(GExiv2.Metadata):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
 /site-packages/gi/module.py", line 138, in __getattr__
     self.__name__, name))
 AttributeError: 'gi.repository.GExiv2' object has no attribute 'Metadata'
 }}}

 {{{
 $ port installed gexiv2
 The following ports are currently installed:
   gexiv2 @0.10.9_1+python27+python36 (active)
 }}}

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


More information about the macports-tickets mailing list