FS#51937 - [libgexiv2] typelib in wrong location
Attached to Project:
Community Packages
Opened by Jan Koppe (jankoppe) - Wednesday, 23 November 2016, 16:28 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 24 November 2016, 00:28 GMT
Opened by Jan Koppe (jankoppe) - Wednesday, 23 November 2016, 16:28 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 24 November 2016, 00:28 GMT
|
Details
Description:
The package libgexiv2 installs its typelib in /usr/share/gir-1.0/GExiv2-0.10.typelib. This should be /usr/lib/girepository-1.0/GExiv2-0.10.typelib Because of this the GExiv2 import in Python does not work. Additional info: * package version(s) community/libgexiv2 0.10.4-1 extra/python 3.5.2-3 * config and/or log files etc. Steps to reproduce: Run the following script: ``` #!/usr/bin/python from gi.repository import GExiv2 ``` This produces: ``` Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 890, in _find_spec AttributeError: 'DynamicImporter' object has no attribute 'find_spec' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./py.py", line 2, in <module> from gi.repository import GExiv2 File "/usr/lib/python3.5/site-packages/gi/importer.py", line 127, in find_module 'introspection typelib not found' % namespace) ImportError: cannot import name GExiv2, introspection typelib not found ``` Create symbolic link from original file to correct path: ``` sudo ln -s /usr/share/gir-1.0/GExiv2-0.10.typelib /usr/lib/girepository-1.0/GExiv2-0.10.typelib ``` Now the script works fine and GExiv2 can be used without problems. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Thursday, 24 November 2016, 00:28 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#51673
FS#51797
Please search all tickets before filing a new one.
Thursday, 24 November 2016, 00:28 GMT
Reason for closing: Duplicate
Additional comments about closing:
Please search all tickets before filing a new one.