Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587636 - sys-apps/tuned-2.6.0-r1: 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
Summary: sys-apps/tuned-2.6.0-r1: PyGIWarning: Gtk was imported without specifying a v...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2016-07-01 01:20 UTC by Renich Bon Ciric
Modified: 2016-07-15 14:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renich Bon Ciric 2016-07-01 01:20:43 UTC
When trying to run the tuned-gui command, as root, it fails to start; stating that GTK is wrongly imported.

Reproducible: Always

Steps to Reproduce:
1. Install GNOME3
2. Install tuned
3. Try running tuned-gui
Actual Results:  
introdesk ~ # tuned-gui
/usr/sbin/tuned-gui:29: 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.
  import gi.repository.Gtk as Gtk
Traceback (most recent call last):
  File "/usr/sbin/tuned-gui", line 1010, in <module>
    base = Base()
  File "/usr/sbin/tuned-gui", line 132, in __init__
    tuned.gtk.gui_plugin_loader.GuiPluginLoader()
  File "/usr/lib64/python2.7/site-packages/tuned/gtk/gui_plugin_loader.py", line 86, in __init__
    self.create_all(self._import_plugin_names())
  File "/usr/lib64/python2.7/site-packages/tuned/gtk/gui_plugin_loader.py", line 118, in create_all
    self._plugins.add(self.repo.create(plugin_name))
  File "/usr/lib64/python2.7/site-packages/tuned/plugins/repository.py", line 35, in create
    self._plugin_instance_factory, self._global_cfg, self._variables)
  File "/usr/lib64/python2.7/site-packages/tuned/plugins/base.py", line 31, in __init__
    self._init_devices()
  File "/usr/lib64/python2.7/site-packages/tuned/plugins/plugin_mounts.py", line 51, in _init_devices
    self._generate_mountpoint_topology()
  File "/usr/lib64/python2.7/site-packages/tuned/plugins/plugin_mounts.py", line 26, in _generate_mountpoint_topology
    stdout, stderr = Popen(["/usr/bin/lsblk", "-rno", "TYPE,RM,KNAME,FSTYPE,MOUNTPOINT"], stdout=PIPE, stderr=PIPE, close_fds=True).communicate()
  File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Comment 1 Michael 'veremitz' Everitt 2016-07-02 16:03:35 UTC
Looks like a dependency/configuration glitch in the ebuild to me.
Comment 2 Yixun Lan archtester gentoo-dev 2016-07-15 06:44:11 UTC
thanks for reporting this, fixed in tree

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=519ea089efa6a481624a643cea7d143f702a8681
Comment 3 Renich Bon Ciric 2016-07-15 14:28:50 UTC
Sure, man. Thank you for fixing it! ;=)