Gajim master: Exception on startup
Bug description
I get the following exception when trying to start gajim master (or whatever hg calls it):
/usr/lib/python3/dist-packages/dbus/decorators.py:158: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
args = inspect.getargspec(func)[0]
/usr/lib/python3/dist-packages/dbus/decorators.py:319: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
args = inspect.getargspec(func)[0]
/home/r/src/gajim/src/cell_renderer_image.py:33: PyGIDeprecationWarning: GObject.PARAM_READWRITE is deprecated; use GObject.ParamFlags.READWRITE (glib 2.42+) instead
'Image', GObject.PARAM_READWRITE),
sys:1: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded.
/home/r/src/gajim/src/common/passwords.py:273: DeprecationWarning: GnomeKeyring.is_available is deprecated
if GnomeKeyring.is_available():
/home/r/src/gajim/src/common/passwords.py:68: DeprecationWarning: GnomeKeyring.get_default_keyring_sync is deprecated
(err, self.keyring) = GnomeKeyring.get_default_keyring_sync()
/home/r/src/gajim/src/common/passwords.py:73: DeprecationWarning: GnomeKeyring.create_sync is deprecated
err = GnomeKeyring.create_sync(self.keyring, None)
/home/r/src/gajim/src/common/passwords.py:94: DeprecationWarning: GnomeKeyring.attribute_list_new is deprecated
attributes1 = GnomeKeyring.attribute_list_new()
/home/r/src/gajim/src/common/passwords.py:96: DeprecationWarning: GnomeKeyring.attribute_list_append_string is deprecated
str(server))
/home/r/src/gajim/src/common/passwords.py:107: DeprecationWarning: GnomeKeyring.find_items_sync is deprecated
GnomeKeyring.ItemType.NETWORK_PASSWORD, attributes1)
/home/r/src/gajim/src/statusicon.py:151: DeprecationWarning: Gtk.StatusIcon.set_visible is deprecated
self.status_icon.set_visible(True)
/home/r/src/gajim/src/statusicon.py:140: DeprecationWarning: Gtk.StatusIcon.set_from_pixbuf is deprecated
self.status_icon.set_from_pixbuf(image.get_pixbuf())
/home/r/src/gajim/src/roster_window.py:5084: DeprecationWarning: Gtk.StyleContext.get_background_color is deprecated
bgcolor = context.get_background_color(style)
Traceback (most recent call last):
File "gajim.py", line 526, in \<module>
interface.run()
File "/home/r/src/gajim/src/gui_interface.py", line 2713, in run
gajim.plugin_manager = plugins.PluginManager()
File "/home/r/src/gajim/src/plugins/helpers.py", line 129, in __call__
cls.instance=super(Singleton, cls).__call__(*args,**kw)
File "/home/r/src/gajim/src/plugins/pluginmanager.py", line 104, in __init__
pc = PluginManager.scan_dir_for_plugins(path)
File "/home/r/src/gajim/src/plugins/helpers.py", line 114, in wrapper
result = f(*args, **kwargs)
File "/home/r/src/gajim/src/plugins/pluginmanager.py", line 482, in scan_dir_for_plugins
module = __import__(module_name)
File "/home/r/.local/share/gajim/plugins/omemo/__init__.py", line 30, in \<module>
from .ui import Ui
File "/home/r/.local/share/gajim/plugins/omemo/ui.py", line 30, in \<module>
class PreKeyButton(gtk.Button):
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 64, in __getattr__
raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
And indeed there is an occurrence of "import gobject":
$ ack "import gobject"
plugins/dbus_plugin/plugin.py
39:import gobject
Software versions
OS version: Debian testing
GTK version: 3.18.7
PyGTK version: (There is no python-gtk3 package, so I am not sure which version is asked for here)