Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLL not found on Conda Windows #46

Closed
polm opened this issue Jun 18, 2020 · 4 comments
Closed

DLL not found on Conda Windows #46

polm opened this issue Jun 18, 2020 · 4 comments
Labels

Comments

@polm
Copy link
Collaborator

polm commented Jun 18, 2020

The alpha 1.0 release work on Windows, but there was a report of it not working in conda on Win10. The binary wheel seems to be installed correctly and fugashi works so it's unclear what the cause is.

@polm polm added help wanted windows Windows-specific issues labels Jun 18, 2020
@polm
Copy link
Collaborator Author

polm commented Jun 18, 2020

To install the alpha, run pip install mecab-python3==1.0.0a1. To test it, fire up python and import MeCab. If that works you should be OK.

@polm
Copy link
Collaborator Author

polm commented Jun 29, 2020

The full release is out now. I set up a Windows dev environment and tested it and I'm not sure if I can reproduce it reliably. First I opened an "Anaconda prompt" somehow, installed mecab-python3, and got the same error as was reported:

>>> import MeCab
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\23\anaconda3\lib\site-packages\MeCab\__init__.py", line 10, in <module>
    from . import _MeCab
ImportError: DLL load failed: 指定されたモジュールが見つかりません。

Then I tried Powershell and virtualenv with standard Python (not Anaconda). That had no issues.

Then I tried Anaconda and Powershell. That also worked fine, so I wondered if I was imagining things.

Next I tried Anaconda and command.exe. I thought this was the same as the "Anaconda prompt" but apparently not. In any case this also works.

I guess this needs more investigation...

@polm
Copy link
Collaborator Author

polm commented Jun 30, 2020

OK, I figured out what's going on. After I installed normal Python it updated my paths, and that made Anaconda work. If I have just Anaconda installed or remove the normal Python paths then I get the DLL load failed error. I'll try to see what's causing this.

@polm
Copy link
Collaborator Author

polm commented Jul 27, 2020

I'm still having trouble reproducing this, so closing it for now. If you experience this issue please feel free to reopen it.

@polm polm closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant