Description of problem: Unable to make changes in MSEC: System Security and Audit Double clicking creates terminal message Traceback (most recent call last): File "/usr/share/msec/msecgui.py", line 1662, in option_changed dialog.vbox.pack_start(Gtk.HSeparator()) TypeError: pack_start() takes exactly 5 arguments (2 given) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. click up a terminal 2. mcc & 3. Click Security (left Panel) 3. Click Configure system security, permissions and audit (right panel) 4. click Security settings tab (top of screen) 5. click System security tab 6. click any item 7. double click it Note error messages in terminal Reproducible: Steps to Reproduce:
CC: (none) => mageia
Same here. I cant change something in the gui. Mageia 5 Beta 3 [last update : 7 March 2015] ----- INFO: Starting gui.. INFO: Die Exceptions-Datei /etc/security/msec/exceptions wird geladen: Datei oder Verzeichnis nicht gefunden INFO: Keine Exceptions geladen INFO: MSEC Basisebene 'standard' gefunden /usr/share/msec/msecgui.py:213: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations filemenu = Gtk.MenuItem(topmenu, use_underline=True) /usr/share/msec/msecgui.py:219: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations menuitem = Gtk.MenuItem(submenu, use_underline=True) /usr/share/msec/msecgui.py:236: DeprecationWarning: Gtk.modify_font is deprecated label.modify_font(Pango.FontDescription("13")) /usr/share/msec/msecgui.py:572: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "n_rows, n_columns, homogeneous" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations table = Gtk.Table(4, 4, False) /usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:1445: DeprecationWarning: Gtk.attach is deprecated Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding) /usr/share/msec/msecgui.py:604: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Configure")) /usr/share/msec/msecgui.py:618: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Update now")) /usr/share/msec/msecgui.py:646: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Configure")) /usr/share/msec/msecgui.py:667: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Show results")) /usr/share/msec/msecgui.py:673: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Run now")) /usr/share/msec/msecgui.py:832: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations treeview = Gtk.TreeView(lstore) /usr/share/msec/msecgui.py:833: DeprecationWarning: Gtk.set_rules_hint is deprecated treeview.set_rules_hint(True) /usr/share/msec/msecgui.py:897: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.notify_mail = Gtk.CheckButton(_("Send security alerts by email to:")) /usr/share/msec/msecgui.py:919: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.notify_desktop = Gtk.CheckButton(_("Display security alerts on desktop")) /usr/share/msec/msecgui.py:490: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations treeview = Gtk.TreeView(lstore) /usr/share/msec/msecgui.py:1103: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.periodic_checks = Gtk.CheckButton(_("Enable periodic security checks")) /usr/share/msec/msecgui.py:1155: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations treeview = Gtk.TreeView(lstore) /usr/share/msec/msecgui.py:1192: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Add a rule")) /usr/share/msec/msecgui.py:1197: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Delete")) /usr/share/msec/msecgui.py:1227: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "model" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations treeview = Gtk.TreeView(lstore) /usr/share/msec/msecgui.py:1319: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Add a rule")) /usr/share/msec/msecgui.py:1324: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations button = Gtk.Button(_("Delete")) /usr/share/msec/msecgui.py:1650: PyGTKDeprecationWarning: The "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL)) /usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:537: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "title, transient_for, flags, add_buttons" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self._init(*args, **new_kwargs) Traceback (most recent call last): File "/usr/share/msec/msecgui.py", line 1662, in option_changed dialog.vbox.pack_start(Gtk.HSeparator()) TypeError: pack_start() takes exactly 5 arguments (2 given) Traceback (most recent call last): File "/usr/share/msec/msecgui.py", line 1658, in option_changed def_start, val_def, def_end,)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 195: ordinal not in range(128) Traceback (most recent call last): File "/usr/share/msec/msecgui.py", line 1658, in option_changed def_start, val_def, def_end,)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
CC: (none) => linux
Source RPM: msec-1.4-3.mga5.src.rpm => msec-gui-1.6-1.mga5
CC'ing Thierry who probably knows most about msec, and also Philippe and Yves who have experience with python.
CC: (none) => makowski.mageia, thierry.vignaud, yves.brungard_mageiaSeverity: normal => major
seems that this commit was not the good one : http://gitweb.mageia.org/software/msec/commit/src/msec/msecgui.py?id=3b648feb5cb907218702c9e469cff98dba7524d3 may be we need to revert it, at least we need to provide all the needed arguments http://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Box.html#Gtk.Box.pack_start
Created attachment 6382 [details] decode error and pack_start errors Please consider this patch, it should fix the reported bug
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=15777
commit 1b918b5c600ee94310fa2eacaf76d03d3df71876 Author: Thierry Vignaud <thierry.vignaud@...> Date: Fri May 1 00:53:22 2015 +0200 fix broken config buttons after migration to gtk3 (Philippe Makowski, mga#14777) --- Commit Link: http://gitweb.mageia.org/software/msec/commit/?id=1b918b5c600ee94310fa2eacaf76d03d3df71876
Thanks. Closing
Status: NEW => RESOLVEDResolution: (none) => FIXED
We should probably push msec-1.8 as an update to mga4 though
(In reply to Thierry Vignaud from comment #7) > We should probably push msec-1.8 as an update to mga4 though I'm reopening it and setting version to Mageia 4 then.
Keywords: (none) => PATCHStatus: RESOLVED => REOPENEDVersion: Cauldron => 4Resolution: FIXED => (none)
No actually we shipped gtk2 msec in mga4
Status: REOPENED => RESOLVEDVersion: 4 => CauldronResolution: (none) => FIXED
*** Bug 15777 has been marked as a duplicate of this bug. ***
CC: (none) => ashvinlobo
Was not fixed actually, see follow-up in bug 15981
Blocks: (none) => 11778