Results 1 to 3 of 3

Thread: gnuradio-companion missing Gtk

  1. #1

    Default gnuradio-companion missing Gtk

    I'm trying to run gnradio-companion. When I execute the command I get:

    Code:
    Traceback (most recent call last):
      File "/usr/bin/gnuradio-companion", line 59, in check_gtk
        gi.require_version('Gtk', '3.0')
      File "/usr/lib64/python3.7/site-packages/gi/__init__.py", line 129, in require_version
        raise ValueError('Namespace %s not available' % namespace)
    ValueError: Namespace Gtk not available
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/bin/gnuradio-companion", line 100, in <module>
        check_gtk()
      File "/usr/bin/gnuradio-companion", line 67, in check_gtk
        die(err, "Failed to initialize GTK. If you are running over ssh, "
      File "/usr/bin/gnuradio-companion", line 41, in die
        gi.require_version('Gtk', '3.0')
      File "/usr/lib64/python3.7/site-packages/gi/__init__.py", line 129, in require_version
        raise ValueError('Namespace %s not available' % namespace)
    ValueError: Namespace Gtk not available
    The section of the gnuradio-companion that causes this is:

    Code:
    def check_gtk():
        try:
            warnings.filterwarnings("error")
            import gi
            gi.require_version('Gtk', '3.0')
            gi.require_version('PangoCairo', '1.0')
            gi.require_foreign('cairo', 'Context')
    
            from gi.repository import Gtk
            Gtk.init_check()
            warnings.filterwarnings("always")
        except Exception as err:
            die(err, "Failed to initialize GTK. If you are running over ssh, "
                     "did you enable X forwarding and start ssh with -X?")

    In order to test whether the gi module is installed I wrote the following script:
    Code:
    #!/usr/bin/python3 
    
    
    import gi
    Which executes successfully.

    Does anyone know what package I need to install in order to resolve this?

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

    Default Re: gnuradio-companion missing Gtk

    Where are you getting your gnuradio?
    Although I didn't actually install, when I did proposed install on my Tumbleweed,
    From the package list it looks like it's been refactored to use the Qt framework, not Gtk.

    Unless you have a special reason to be running your particular package, I recommend removing it and install the one built for Tumbleweed.

    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: gnuradio-companion missing Gtk

    [[
    Unless you have a special reason to be running your particular package, I recommend removing it and install the one built for Tumbleweed.
    I did a clean install of tumbleweed, but still had the problem. Installing gajim, which seems to have gtk dependencies, resolved that issue. I also had to install python3-PyYAML. After that it works.

    Thanks for your assistance.

Posting Permissions

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