Results 1 to 3 of 3

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

  1. #1

    Question 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
    Code:
    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?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,296
    Blog Entries
    2

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

    Specify the gtk version in your Python app
    http://python-gtk-3-tutorial.readthe...roduction.html

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

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

    Quote Originally Posted by tsu2 View Post
    Specify the gtk version in your Python app
    http://python-gtk-3-tutorial.readthe...roduction.html

    TSU
    Thank you, this does the trick.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •