Jump to content
  • 0

Error starting quodlibet/exfalso/operon


lvdd
 Share

Question

Hi,

 

I just emerged quodlibet to my freshly installed funtoo. But when I try to start quodlibet or exfalso I get error messages that I don't understand.

~ $ quodlibet 
Traceback (most recent call last):
  File "/usr/bin/quodlibet", line 438, in <module>
    main()
  File "/usr/bin/quodlibet", line 44, in main
    from quodlibet import browsers
  File "/usr/lib64/python2.7/site-packages/quodlibet/browsers/__init__.py", line 13, in <module>
    from quodlibet.browsers._base import Browser
  File "/usr/lib64/python2.7/site-packages/quodlibet/browsers/_base.py", line 15, in <module>
    from quodlibet.qltk.songsmenu import SongsMenu
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

When I try exfalso I receive a different error:

~ $ exfalso
Traceback (most recent call last):
  File "/usr/bin/exfalso", line 62, in <module>
    main()
  File "/usr/bin/exfalso", line 41, in main
    title=const.PROCESS_TITLE_EF)
  File "/usr/lib64/python2.7/site-packages/quodlibet/__init__.py", line 295, in init
    _gtk_init(icon)
  File "/usr/lib64/python2.7/site-packages/quodlibet/__init__.py", line 101, in _gtk_init
    gi.require_version("Gtk", "3.0")
  File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 100, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

And operon the cmdline tool gives me this:

~ $ operon
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/vgm.py", line 11, in <module>
    from ._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/monkeysaudio.py", line 7, in <module>
    from quodlibet.formats._apev2 import APEv2File
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_apev2.py", line 7, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/mpc.py", line 7, in <module>
    from quodlibet.formats._apev2 import APEv2File
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_apev2.py", line 7, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/midi.py", line 9, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/wavpack.py", line 7, in <module>
    from quodlibet.formats._apev2 import APEv2File
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_apev2.py", line 7, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/trueaudio.py", line 14, in <module>
    from quodlibet.formats._id3 import ID3File
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_id3.py", line 13, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/mp4.py", line 8, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/xiph.py", line 18, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/wav.py", line 10, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/wma.py", line 10, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/spc.py", line 9, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/mp3.py", line 8, in <module>
    from quodlibet.formats._id3 import ID3File
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_id3.py", line 13, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/remote.py", line 7, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 39, in load_dir_modules
    mod = load_module(name, package, path)
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/importhelper.py", line 109, in load_module
    mod = imp.load_module(fullname, fp, path, desc)
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/mod.py", line 10, in <module>
    from quodlibet.formats._audio import AudioFile
  File "/usr/lib64/python2.7/site-packages/quodlibet/formats/_audio.py", line 31, in <module>
    from quodlibet.util.cover.manager import cover_plugins
  File "/usr/lib64/python2.7/site-packages/quodlibet/util/cover/manager.py", line 11, in <module>
    from quodlibet.plugins import PluginManager, PluginHandler
  File "/usr/lib64/python2.7/site-packages/quodlibet/plugins/__init__.py", line 12, in <module>
    from quodlibet.qltk.ccb import ConfigCheckButton
  File "/usr/lib64/python2.7/site-packages/quodlibet/qltk/__init__.py", line 11, in <module>
    from gi.repository import Gtk
ImportError: cannot import name Gtk

No formats found!

Python and gtk+ are installed. Also all of the dependencies given from the quodlibet homepage.

~ $ eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
~ $ emerge -s gtk+
Searching...    
[ Results for search key : gtk+ ]
[ Applications found : 2 ]

*  x11-libs/gtk+
      Latest version available: 3.14.10
      Latest version installed: 3.14.10
      Size of files: 15,413 kB
      Homepage:      http://www.gtk.org/
      Description:   Gimp ToolKit +
      License:       LGPL-2+

It also does not help to switch python to 2.7 by using:

eselect python set 1 

Could somebody please help me understand what is going on here?

 

Thanks

lvdd

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  • Funtoo Linux Developer

Gtk has to be compiled with introspection enabled:

USE=introspection emerge -1 gtk+
python2.7 -c "from gi.repository import Gtk"

Whether this works or not, please file a bug. This is only a temporary workaround.

 

PS : You should probably keep python3.3 as default python interpreter. If you installed a package "foo" on both python2.7 and python3.3, you can run "foo-3.3" or "foo-2.7" to run it on a specific python instance. But here, quodlibet is python 2.7 only anyway.

Link to comment
Share on other sites

  • 0

Thank you pytony!

I recompiled gtk+ with USE=introspection and now the application starts up. I am not quite sure what to write into the bug report though, as I haven't understood the underlying problem. Is this a general issue with the ebuild for quodlibet or just a documentation issue that the USE flag is missing?

 

Thanks again

lvdd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...