Skip to content

problem with kokoro + fugashi #7

@teto

Description

@teto

this is what I am dealing with in current state when running python3 ./scripts/test.py:

 WeightNorm.apply(module, name, dim)
Traceback (most recent call last):
  File "/home/teto/neovim/rikai.nvim/./scripts/test.py", line 4, in <module>
    pipeline = KPipeline(lang_code='j')
  File "/nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/kokoro/pipeline.py", line 127, in __init__
    self.g2p = ja.JAG2P()
               ~~~~~~~~^^
  File "/nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/misaki/ja.py", line 258, in __init__
    self.cutlet = Cutlet()
                  ~~~~~~^^
  File "/nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/misaki/cutlet.py", line 264, in __init__
    self.tagger = Tagger()
                  ~~~~~~^^
  File "fugashi/fugashi.pyx", line 391, in fugashi.fugashi.Tagger.__init__
  File "fugashi/fugashi.pyx", line 231, in fugashi.fugashi.GenericTagger.__init__
RuntimeError: 
Failed initializing MeCab. Please see the README for possible solutions:

    https://github.com/polm/fugashi

If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:

    https://github.com/polm/fugashi/issues

issueを英語で書く必要はありません。

------------------- ERROR DETAILS ------------------------
arguments: [b'fugashi', b'-C', b'-r', b'/nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/unidic/dicdir/mecabrc', b'-d', b'/nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/unidic/dicdir']
param.cpp(69) [ifs] no such file or directory: /nix/store/mi7nv1yg4cl5hz89cj4247ac2vkxbqny-python3-3.13.5-env/lib/python3.13/site-packages/unidic/dicdir/mecabrc
----------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions