neovim / python-gui

Proof-of-concept Nvim GUI. Not maintained.
Apache License 2.0
75 stars 20 forks source link

PyGIWarning: Gdk/Gtk was imported without specifying a version first. #10

Closed kierun closed 8 years ago

kierun commented 8 years ago

When running pynvim, I get those warnings:

; pynvim
/home/usr/.local/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo

** (pynvim:3081): WARNING **: Couldn't register with accessibility bus: Did not
receive a reply. Possible causes include: the remote application did not send a
reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
/home/usr/.local/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: 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.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo
/home/usr/.local/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo
lpan commented 8 years ago

Hi @JIghtuse @bfredl now I am having a similar issue. I am on Fedora 24 and pip 8.02 & Python 2.7

/usr/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo
/usr/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: 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.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo
/usr/lib/python2.7/site-packages/neovim_gui/gtk_ui.py:6: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Gdk, Gtk, Pango, PangoCairo
JIghtuse commented 8 years ago

Hi @lpan. It looks like there was no updates to pip packages after this issue was closed. I don't know who should publish it.

bfredl commented 8 years ago

neovim_gui 0.1.3 released.

lpan commented 8 years ago

Sweet!