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

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Flet desktop-app to extract Japanese reading with SudachiPy .

img

Build

  1. Install SudachiPy, SudachiDict-core, PyInstaller:

    pip install sudachipy sudachidict_core pyinstaller
    
  2. Remove pathlib module for pyinstaller compatibility:

    python -m pip uninstall pathlib
    
  3. Run:

    pyinstaller --onefile --name yomi --collect-data sudachidict_core --collect-data sudachipy --noconsole main.py
    
  4. Re-install pathlib:

    python -m pip install pathlib
    

When running a build using pyinstaller installed with pip install pyinstaller, the generated .exe file may be considered a virus by Windows Defender. In this case, using a locally built pyinstaller may solve the problem.

Steps:

  1. git clone https://github.com/pyinstaller/pyinstaller
  2. cd .\pyinstaller\bootloader\
  3. python .\waf all
    • 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 .

This will build pyinstaller in the python site-package folder. The folder used for the build is no longer used, so you can delete it.


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