Skip to content

Conversation

@polm
Copy link
Owner

@polm polm commented Oct 20, 2025

This should fix #113.

I am making a release of v1.5.2dev0 which can be used for testing. If that's OK, I'll make an official release.

@polm
Copy link
Owner Author

polm commented Oct 20, 2025

502 caused the tests to fail, which is weird. I heard there's some large AWS outage today, so I'll come back to this.

@polm
Copy link
Owner Author

polm commented Oct 20, 2025

Hm, it looks like just re-running the tests fixed things, so if someone can confirm the test release works I can make a real release.

@ShikiOkasaka
Copy link

On Fedora 43 beta, I had to install mecab-devel and mecab-ipadic via dnf to use v1.5.2dev0.
Otherwise, the following error appears when calling GenericTagger():

$ python
Python 3.14.0 (main, Oct  7 2025, 00:00:00) [GCC 15.2.1 20250924 (Red Hat 15.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fugashi import GenericTagger
>>> tagger = GenericTagger()
... 
... 
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    tagger = GenericTagger()
  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']
param.cpp(69) [ifs] no such file or directory: /usr/lib64/mecab/dic/ipadic/dicrc
----------------------------------------------------------

Is this expected behavior?

@joshdavham
Copy link

@polm

Here's my full error message when I try to install:

(deletemevenv) ➜  ~ python --version
Python 3.14.0
(deletemevenv) ➜  ~ pip install fugashi==1.5.2.dev0
Collecting fugashi==1.5.2.dev0
  Using cached fugashi-1.5.2.dev0.tar.gz (339 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Traceback (most recent call last):
        File "/Users/joshuahamilton/deletemevenv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/Users/joshuahamilton/deletemevenv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/joshuahamilton/deletemevenv/lib/python3.14/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/y7/tmd7mp4x6f39ll67bxp7djcr0000gn/T/pip-build-env-5rjrny1v/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y7/tmd7mp4x6f39ll67bxp7djcr0000gn/T/pip-build-env-5rjrny1v/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/private/var/folders/y7/tmd7mp4x6f39ll67bxp7djcr0000gn/T/pip-build-env-5rjrny1v/overlay/lib/python3.14/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 14, in <module>
        File "/private/var/folders/y7/tmd7mp4x6f39ll67bxp7djcr0000gn/T/pip-install-dqu2jb96/fugashi_29915b5a9c0047f7a01bfab5f4385eed/fugashi_util.py", line 68, in check_libmecab
          raise RuntimeError("Could not configure working env. Have you installed MeCab?")
      RuntimeError: Could not configure working env. Have you installed MeCab?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

polm added 3 commits October 23, 2025 14:13
Wheels were not actually being build except for Windows.
It looks like this will raise the supported Python versions
@polm
Copy link
Owner Author

polm commented Oct 23, 2025

Thank you for the reports. It looks like the 3.14 wheels were not actually built, except on Windows.

I had to update cibuildwheel and Cython, but this seems to be working for me locally now. The new version for testing is v1.5.2dev3.

@joshdavham
Copy link

joshdavham commented Oct 24, 2025

@polm

Alright, I went and tested this on both my mac and on ubuntu through my jreadability package and it works!

On macos:

(venv) ➜  jreadability git:(python-3.14) sw_vers
ProductName:		macOS
ProductVersion:		26.0.1
BuildVersion:		25A362
(venv) ➜  jreadability git:(python-3.14) python --version
Python 3.14.0
(venv) ➜  jreadability git:(python-3.14) pip show fugashi
Name: fugashi
Version: 1.5.2.dev3
Summary: Cython MeCab wrapper for fast, pythonic Japanese tokenization.
Home-page:
Author:
Author-email: Paul O'Leary McCann <polm@dampfkraft.com>
License-Expression: MIT AND BSD-3-Clause
Location: /Users/joshuahamilton/open-source/jreadability/venv/lib/python3.14/site-packages
Requires:
Required-by: jreadability
(venv) ➜  jreadability git:(python-3.14) pytest
==================================== test session starts ====================================
platform darwin -- Python 3.14.0, pytest-8.4.2, pluggy-1.6.0
rootdir: /Users/joshuahamilton/open-source/jreadability
configfile: pyproject.toml
plugins: cov-7.0.0
collected 7 items

tests/test_jreadability.py .......                                                    [100%]

===================================== 7 passed in 2.36s =====================================

On ubuntu through gh actions: joshdavham/jreadability#15

...and I don't have a windows machine, but it sounds like you've tested it there 👍

I think it's good for a release!

@ShikiOkasaka
Copy link

v1.5.2dev3 worked fine with Python 3.14.0 on Fedora 43 Beta using Tagger.
No separate mecab installation via dnf was required. Log below.

$ pip install fugashi[unidic-lite]==v1.5.2dev3
Collecting fugashi==v1.5.2dev3 (from fugashi[unidic-lite]==v1.5.2dev3)
  Downloading fugashi-1.5.2.dev3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (7.3 kB)
Collecting unidic-lite (from fugashi[unidic-lite]==v1.5.2dev3)
  Downloading unidic-lite-1.0.8.tar.gz (47.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.4/47.4 MB 21.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Downloading fugashi-1.5.2.dev3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (686 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 686.5/686.5 kB 11.3 MB/s eta 0:00:00
Building wheels for collected packages: unidic-lite
  Building wheel for unidic-lite (pyproject.toml) ... done
  Created wheel for unidic-lite: filename=unidic_lite-1.0.8-py3-none-any.whl size=48930616 sha256=969b2a350f19ab7aa8c75bd597789468b54e62d53d7b19ac1325889b3047e31f
  Stored in directory: /home/shiki/.cache/pip/wheels/bc/67/c3/d96c26055fce8b3c64f3cedbeb1303f32013460d2c4036d0ce
Successfully built unidic-lite
Installing collected packages: unidic-lite, fugashi
Successfully installed fugashi-1.5.2.dev3 unidic-lite-1.0.8
$ python 
Python 3.14.0 (main, Oct  7 2025, 00:00:00) [GCC 15.2.1 20250924 (Red Hat 15.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fugashi import Tagger
>>> tagger = Tagger('-Owakati')
>>> text = "麩菓子は、麩を主材料とした日本の菓子。"
>>> tagger.parse(text)
'麩 菓子 は 、 麩 を 主材 料 と し た 日本 の 菓子 。'
>>> 

@polm
Copy link
Owner Author

polm commented Oct 24, 2025

Thank you both for the confirmation, I will make an official release shortly.

@polm polm merged commit 1576b66 into main Oct 24, 2025
26 checks passed
@polm
Copy link
Owner Author

polm commented Oct 24, 2025

This is now available as v1.5.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Python 3.14

4 participants