Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1736 by [email protected]: ibus-anthy 1.5.5 does not run on newly created user
http://code.google.com/p/ibus/issues/detail?id=1736

What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...):Ubuntu 14.10
Architecture (i386, x86_64): x86_64
IBus version: 1.5.5
Input method name and version: ibus-anthy 1.5.5

What steps will reproduce the problem?
1. create new user, newly install OS or rm -rf ~/.anthy
2. push zenkaku/hankaku key
3. nothing to happen

Please provide any additional information below.
Error log is here:
Traceback (most recent call last):
File "/usr/share/ibus-anthy/engine/factory.py", line 69, in do_create_engine return engine.Engine(self.__bus, '%s/%d' % (self.ENGINE_PATH, self.__id))
  File "/usr/share/ibus-anthy/engine/engine.py", line 127, in __init__
    if not self.__verify_anthy_journal_file():
File "/usr/share/ibus-anthy/engine/engine.py", line 185, in __verify_anthy_journal_file
    except FileNotFoundError:
NameError: global name 'FileNotFoundError' is not defined

according to bd5dcd074de31ffcecffde962e313b334841adb6, if .anthy/last-record2_default.utf8 does not exist, ibus-anthy 1.5.5 call FileNotFoundError and stop to working. But newly created user does not have this file. So ibus-anthy fails to run.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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
--- You received this message because you are subscribed to the Google Groups "ibus-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

回复