DLL Load Failed on import
Closed this issue · 4 comments
I am getting an error after uninstalling and re-installing fugashi.
I tried to uninstall and re-install (to upgrade) as follows:
pip uninstall fugashi
pip install fugashi[unidic]
pip -m unidic download
I did this both inside an Anaconda environment and the global Python environment on my Windows 10 machine. Any idea what might be causing this or how to fix it?
Thanks for the report and sorry for the trouble. I think I know what causes this and am looking at it now.
I just released an alpha version that should fix it, could you try installing that with pip install fugashi[unidic-lite]==1.0.4a1
? unidic vs unidic-lite shouldn't make a difference for this.
As part of adding the cli scripts I changed where the generated .so/.pyd file was placed. On Linux that file is fine by itself, but on Windows it needs to be in the same directory as mecab.dll. So to fix the issue I had to change where mecab.dll was copied on install.
Thanks! That fixed it for me. The import line runs without any errors in the Anaconda environment I was using (w/ Python 3.7.7) and my global Python 3.8.3 install. I only checked other fugashi functionality in the Anaconda environment, and it seemed to be working correctly. 👍
Thanks for the confirmation, I'll do an official release today.