Updates:
        Cc: takao.fujiwara1

Comment #1 on issue 1119 by takao.fujiwara1: cannot use ibus-anthy 1.2.4 with ibus-qt 1.3.0
http://code.google.com/p/ibus/issues/detail?id=1119

ibus-anthy is not changed for the anthy module between 1.2.3 and 1.2.4.
http://github.com/ibus/ibus-anthy/commits/master/
ibus-anthy 1.2.4 has minor changes only.

I guess your build environment was changed something.

File "/usr/lib/python2.6/site-packages/anthy.py", line 21, in swig_import_helper
     _mod = imp.load_module('_anthy', fp, pathname, description)
ImportError: dynamic module does not define init function (init_anthy)

You could add 'print' command in the anthy.py to check the pathname value.
Does your _anthy.so have init_anthy()?

% objdump -T /usr/lib/python2.6/site-packages/_anthy.so | grep init
0000000000004e60 g    DF .text  00000000000007bb  Base        init_anthy

If not, probably I think your build env has a problem.
After you build ibus-anthy, ibus-anthy/engine/anthy_wrap.c will include the following lines:

#if PY_VERSION_HEX >= 0x03000000
#  define SWIG_init    PyInit__anthy
#else
#  define SWIG_init    init_anthy
#endif

SWIG_init(void) {
  PyObject *m, *d;
...
#if PY_VERSION_HEX >= 0x03000000
  return m;
#else
  return;
#endif
}

I think you use python2.6 so PY_VERSION_HEX would be lower than 3.0.
You could check the PY_VERSION_HEX value with the example code:

% cat a.c
#include <Python.h>
#include <stdio.h>

int
main (int argc, char *argv[])
{
  printf ("test %x %x\n", PY_VERSION_HEX, 0x03000000);
  return 0;
}
% cc -o a a.c `python-config --cflags` `python-config --libs`
% ./a
test 20604f0 3000000



--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复