pyenchant-2.0.0 built for me with enchant-2.1.2, so this might be due to the change of library name to enchant-2 (just guessing). Seems similar to bug 676920, bug 676918, and others. I have not added this to the general tracker for packages not compiling with enchant2 (bug 629838). Reproducible: Always Steps to Reproduce: 1.Emerge app-text/enchant=2.2.3 2.Emerge dev-python/pyenchant-2.0.0 Actual Results: >>> Compiling source in /usr/portage/tmpdir/portage/dev-python/pyenchant-2.0.0/work/pyenchant-2.0.0 ... * python3_6: running distutils-r1_run_phase distutils-r1_python_compile python3.6 setup.py build -j 3 Traceback (most recent call last): File "setup.py", line 212, in <module> import enchant File "/usr/portage/tmpdir/portage/dev-python/pyenchant-2.0.0/work/pyenchant-2.0.0/enchant/__init__.py", line 92, in <module> from enchant import _enchant as _e File "/usr/portage/tmpdir/portage/dev-python/pyenchant-2.0.0/work/pyenchant-2.0.0/enchant/_enchant.py", line 145, in <module> raise ImportError(msg) ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI. (let me know if full build log is necessary) Expected Results: successful emerge I'm no python expert, but it appears this requires a change to the site-packages/enchant for each python version.
Turns out the patch is much simpler than I expected - just add the line yield find_library("enchant-2") right after yield find_library("enchant") in enchant/_enchant.py. The URL I added is for the PR to pyenchant, and it can be followed to the patch itself - just the one line addition.
I've updated the existing versions to require enchant:0, with which it works. Once there is a pyenchant that can use enchant-2 instead, it should really check for that first, and the dep should be enchant:2 then, as we want to get rid of enchant:0 as soon as possible.
I no longer use pyenchangt, but I wonder if this has been resolved with upgrades to pyenchant (currently 3.1.0) and enchant (1.6.1-r1:0 and 2.2.8:2). In the pyenchant ebuild, I see "RDEPEND="app-text/enchant:*"".
I still don't use pyenchant, but tried installing recently and had no errors, so perhaps this can be closed? Fixed probably, else Unmaintained? pyenchant is now 3.2.2-r1.
Thanks for pinging us.