I have installed macrofusion via yast and it appears to instal correctly, a menu entry is created and all dependencies seem to be fulfilled etc. However it fails to run from menu or from command line. The command line fails with the following message
/usr/bin/macrofusion.py:20: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
/usr/bin/macrofusion.py:20: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
An error occured. Python or one of its sub modules is absent...
It would be wise to check your python installation.
Any help in getting it to run would be appreciated.
Hi
Looks like a typelib is missing, it’s easy to work out…
Open a terminal;
cat /usr/bin/macrofusion.py |grep gi.repository
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
python3
Python 3.7.3 (default, Apr 09 2019, 05:18:21) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Gdk
__main__:1: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
>>> from gi.repository import Gtk
__main__:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
>>> from gi.repository import GObject
>>> from gi.repository import GdkPixbuf
>>> from gi.repository import GExiv2
(This is the missing one....)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.7/site-packages/gi/importer.py", line 133, in load_module
'introspection typelib not found' % namespace)
ImportError: cannot import name GExiv2, introspection typelib not found
>>> exit()
So now switch to root user;
su -
zypper se GExiv2
zypper in typelib-1_0-GExiv2-0_10
Hi
Perhaps missing other typelibs as well, did you install the updated version from the development repository? It may take some time to filter through into the release…
Still no joy here, installed updated and get the following
/usr/bin/macrofusion.py:20: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
/usr/bin/macrofusion.py:20: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
/usr/bin/macrofusion.py:20: PyGIWarning: GExiv2 was imported without specifying a version first. Use gi.require_version('GExiv2', '0.10') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, GExiv2
/usr/bin/macrofusion.py:66: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
GObject.threads_init()
Traceback (most recent call last):
File "/usr/bin/macrofusion.py", line 893, in <module>
Gui = Interface() #Interface
File "/usr/bin/macrofusion.py", line 129, in __init__
Gtk.Window.set_default_icon_from_file(IMG + 'macrofusion.png')
AttributeError: type object 'Window' has no attribute 'set_default_icon_from_file'