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

windows 10 python39 error #38

Closed
jilieryuyi opened this issue Mar 30, 2021 · 4 comments · Fixed by #41 or #44
Closed

windows 10 python39 error #38

jilieryuyi opened this issue Mar 30, 2021 · 4 comments · Fixed by #41 or #44

Comments

@jilieryuyi
Copy link

import faiss
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\faiss\loader.py", line 34, in
from .swigfaiss import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\faiss\swigfaiss.py", line 13, in
from . import _swigfaiss
ImportError: DLL load failed while importing _swigfaiss: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\faiss_init_.py", line 17, in
from .loader import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\faiss\loader.py", line 39, in
from .swigfaiss import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\faiss\swigfaiss.py", line 13, in
from . import _swigfaiss
ImportError: DLL load failed while importing _swigfaiss: 找不到指定的模块。

@espdev
Copy link

espdev commented May 14, 2021

I have the same issue.
I have looked through procmon, it seems flang.dll and flangrti.dll cannot be found.

2021-05-14_16-48-40

@espdev
Copy link

espdev commented May 14, 2021

How to fix it manually:

  1. Download the following archives:
    https://anaconda.org/conda-forge/libflang/5.0.0/download/win-64/libflang-5.0.0-h6538335_20180525.tar.bz2
    https://anaconda.org/conda-forge/openmp/7.0.0/download/win-64/openmp-7.0.0-h1ad3211_0.tar.bz2

  2. Unpack and copy the following dll files to site-packages\faiss directory:

flang.dll
flangrti.dll
libomp.dll
ompstub.dll

I think these missing dll files should be inside whl.

@nithinreddyy
Copy link

Still throwing an error like
ImportError: DLL load failed: The specified module could not be found.

@vyasn30
Copy link

vyasn30 commented Nov 22, 2021

Unpacking those dlls still doesn't solve the problem.

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 a pull request may close this issue.

4 participants