8000 Launch of fresh install fails if mecab is not installed · Issue #601 · LuteOrg/lute-v3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Launch of fresh install fails if mecab is not installed #601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abartov opened this issue Apr 1, 2025 · 1 com 8000 ment
Open

Launch of fresh install fails if mecab is not installed #601

abartov opened this issue Apr 1, 2025 · 1 comment

Comments

@abartov
Copy link
abartov commented Apr 1, 2025

Description

Launch of fresh install fails if mecab is not installed. installing the mecab module resolve the problem, but if lute depends on mecab, it should be marked as a dependency so that it is installed.

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Start a fresh virtualenv
  2. Install lute using pip
  3. Launch lute
  4. See error:
$ lute
  
  Starting Lute version 3.10.1.
  
  Using default config
  
  Using new production config.
  
    data path: /home/asaf/.local/share/Lute3
    database:  /home/asaf/.local/share/Lute3/lute.db
  
  Initializing app.
  Initializing parsers from plugins ...
  Enabled parsers:
    * Space Delimited
    * Turkish
    * Japanese
    * Classical Chinese
  Loading demo data.

--------------------------------------------------
Error during startup:
Type: <class 'natto.api.MeCabError'>
MECAB_NBEST request type is not set

Please check your setup and try again.
Ask for help on Discord, or report an issue on GitHub.
Additionally, help is available with --help.
--------------------------------------------------
@jzohrab
Copy link
Collaborator
jzohrab commented Apr 11, 2025

Ah such a drag. MeCab actually is not, or should not be, a required dependency ... it runs on my mac and on github ci without mecab, but the Lute code for it is kind of messy. I did the best I could and yet problems occasionally appear, like this one. Sorry for the hassle.

I'll need to re-investigate the mecab-related code, and see if there's a better way to handle it. Cheers!

@jzohrab jzohrab added this to Lute-v3 Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants
0