View Issue Details

IDProjectCategoryView StatusLast Update
0007526Kali Linux[All Projects] Kali Package Bugpublic2022-01-07 12:17
Reporterhero0 Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2021.4 
Target VersionFixed in Version 
Summary0007526: ibus-pinyin error
Descriptioncannot install ibus-pinyin ,console error
Steps To Reproducesudo apt install ibus-pinyin,and then ibus-setup ,click Input-method & preferences ,console error

Activities

daniruiz

2022-01-07 08:32

manager   ~0015601

I've just installed ibus-pinyin and ibus and configured it and it worked properly. What's the issue you are getting?

hero0

2022-01-07 09:05

reporter   ~0015606

console error: gtk-builder-error-quark: ibus-pinyin-preferences.ui:15:36 Invalid property: GtkDialog.border_width (11) when I add chinese pinyin input method ,and click preferences of this item

daniruiz

2022-01-07 09:15

manager   ~0015608

That's an issue about the gtk gui, but doesn't tell anything about an issue with ibus itself. Does it prevent it from working or is it just that it prints the annoying error.
Also what command are you running from the terminal?

hero0

2022-01-07 09:17

reporter   ~0015609

since this console error ,I cannot use chinese input

hero0

2022-01-07 09:19

reporter   ~0015610

command only two
sudo apt install ibus-pinyin && ibus-setup
and then just click on gui

daniruiz

2022-01-07 09:22

manager   ~0015611

I get a different error message when clicking preferences of the "Chinese - Pinyin" Input Method, but they are all warnings and it doesn't prevent me from opening the dialog and changing configurations. They are all warnings.

This is my output:

/usr/share/ibus-pinyin/setup/main.py:31: 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/share/ibus-pinyin/setup/main.py:32: 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
/usr/share/ibus-pinyin/setup/main.py:44: DeprecationWarning: bind_textdomain_codeset() is deprecated
  gettext.bind_textdomain_codeset("ibus-pinyin", "UTF-8")



Did you install the package ibus and then reboot?

hero0

2022-01-07 09:27

reporter   ~0015612

yes´╝îI download iso a few days ago,and try to use sudo apt update && upgrade ,nothing change

daniruiz

2022-01-07 09:45

manager   ~0015613

I can confirm the issue happens in GNOME. I had been testing it in Xfce and there it works properly. I think it should be a missing dependency

daniruiz

2022-01-07 10:14

manager   ~0015614

Found the solution. For some reason GNOME desktop doesn't work properly with ibus-setup, you need to configure pinyin from the gnome settings. It does work in Xfce though

After installing ibus-pinyin and ibus-gtk3 (and restart, otherwise it won't appear as an input method), go to gnome settings -> keyboard and in "Input Sources" click the '+' sign -> click the three dots -> "Other" and finally select "Chinese (Pinyin)"

daniruiz

2022-01-07 10:28

manager   ~0015615

Additionally you can install the package ibus-libpinyin, which enables the input method "Chinese intelligent Pinyin", which includes more options inside the preferences (preferences for non intelligent pinyin still don't work)

hero0

2022-01-07 12:17

reporter   ~0015618

thanks,I'll try it

Issue History

Date Modified Username Field Change
2022-01-06 10:36 hero0 New Issue
2022-01-07 08:32 daniruiz Note Added: 0015601
2022-01-07 08:38 daniruiz Assigned To => daniruiz
2022-01-07 08:38 daniruiz Status new => feedback
2022-01-07 08:38 daniruiz Assigned To daniruiz =>
2022-01-07 08:38 daniruiz Assigned To => daniruiz
2022-01-07 08:38 daniruiz Status feedback => assigned
2022-01-07 09:05 hero0 Note Added: 0015606
2022-01-07 09:15 daniruiz Note Added: 0015608
2022-01-07 09:17 hero0 Note Added: 0015609
2022-01-07 09:19 hero0 Note Added: 0015610
2022-01-07 09:22 daniruiz Note Added: 0015611
2022-01-07 09:27 hero0 Note Added: 0015612
2022-01-07 09:45 daniruiz Note Added: 0015613
2022-01-07 10:14 daniruiz Note Added: 0015614
2022-01-07 10:28 daniruiz Note Added: 0015615
2022-01-07 12:17 hero0 Note Added: 0015618