How to load the correct Gtk whith Gtk 2.0 and Gtl 3.0 installed.

Hi All,

I have an application written in Python (not by myself, its a third party application). It needs Gtk 2.0. I’m trying to launch this application on a fresh openSUSE 42.2 install using Plasma desktop.

I have both Gtk-2.0.typelib and Gtk-3.0.typelib installed. (it is installed by default in openSUSE 42.2)

When I try to launch the application, I get

ImportError: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded

.

If I uninstall typelib-1_0-Gtk-3_0, the application loads just fine.

I have this application running on other openSESE 42.2 machine with both Gtk-2.0.typelib and Gtk-3.0.typelib installed, but that machine has been running for a long time and has so many weird stuff installed on it I have no idea how to find out what actually makes the application to load correctly.

So, my question is this, how do I keep both Gtk-2.0.typelib and Gtk-3.0.typelib installed and tell the application to load Gtk 2.0 and not Gtk3.0?

Specify the gtk version in your Python app
http://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html

TSU

Thank you, this does the trick.