Cangjians / ibus-cangjie

An IBus engine for users of the Cangjie and Quick input methods
30 stars 14 forks source link

PyGIWarning: Gtk was imported without specifying a version first #86

Closed ghost closed 5 years ago

ghost commented 7 years ago
$ ibus-setup-cangjie cangjie
/usr/bin/ibus-setup-cangjie:35: 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 Gtk
/usr/bin/ibus-setup-cangjie:36: PyGIWarning: IBus was imported without specifying
a version first. Use gi.require_version('IBus', '1.0') before import to ensure that
the right version gets loaded.
  from gi.repository import IBus

It will not be revealed in "make check", only come out when it is running after installation, and it does not prevent the program running and the program function.

This issue is because of a new method to import these gi modules, I have created a patch here

If you think it is okay, I can help to submit a pull request.

bochecha commented 5 years ago

Oh wow, did we never reply to your issue?

I apologize, we should never let issues without response like this for so long. :disappointed:

A pull request would very much be accepted to fix this.

Your patch looks alright at a quick glance, will review in more details the pull request.

Again, I'm sorry we never replied.