Skip to content

GUI by Flet to extract Japanese reading with SudachiPy

Notifications You must be signed in to change notification settings

AWtnb/flet-yomi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Flet desktop-app to extract Japanese reading with SudachiPy .

img

Build

Create venv.

python -m venv .venv

Install packages:

python -m pip install flet
python -m pip install sudachipy
python -m pip install sudachidict_core

Build pyinstaller locally (.exe generated with pip-installed pyinstaller is often considered as virus by security soft):

  1. git clone https://github.com/pyinstaller/pyinstaller
  2. cd .\pyinstaller\bootloader\
  3. python .\waf all
    • Build would fail, but it is ignorable.
    • Visual Studio C++ compiler is required for build.
      • It can be installed with Scoop : scoop install vcredist2015 .
    • In my environment, 2015 and 2022 were installed. If just installing vcredist2015 results in error, try installing the latest version as well.
  4. cd .. (move to pyinstaller directory)
  5. pip install .
  6. Delete pyinstaller folder.
    • This folder is used only for package build and no longer used.

Build yomi.exe

  1. Enter venv (skippable on VSCode)

    .\.venv\Scripts\activate
    
  2. Run:

    pyinstaller --onefile --name yomi --collect-data sudachidict_core --collect-data sudachipy --noconsole main.py
    
    • If error was raised around pathlib, uninstall it: python -m pip uninstall pathlib -y
    • After build, re-install: python -m pip install pathlib
  3. Exit from venv (skippable on VSCode)

    deactivate
    

Sudachi and SudachiDict are both licensed under the Apache License, Version2.0 .