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 load failed when import SPTAG #55

Closed
Arctanxy opened this issue May 29, 2019 · 3 comments
Closed

DLL load failed when import SPTAG #55

Arctanxy opened this issue May 29, 2019 · 3 comments

Comments

@Arctanxy
Copy link

Arctanxy commented May 29, 2019

I have built the project successfully,but when I import SPTAG, I met this error:
`

import sys
sys.path.append(r"D:\library\github_repositories\SPTAG-2\build\Release")
import SPTAG
Traceback (most recent call last):
File "", line 1, in
File "D:\library\github_repositories\SPTAG-2\build\Release\SPTAG.py", line 15, in
import _SPTAG
ImportError: DLL load failed: 找不到指定的模块。`

The files in folder build/Release are:

_SPTAG.exp
_SPTAG.lib
_SPTAG.pyd
_SPTAGClient.exp
_SPTAGClient.lib
_SPTAGClient.pyd
aggregator.exe
client.exe
indexbuilder.exe
search.exe
server.exe
SPTAG.py
SPTAGClient.py
SPTAGLib.dll
SPTAGLib.lib
test.exe

my environments are :

vs2015
python3.6
windows7

Could anyone tell me the solution for this error?

@SC4RECOIN
Copy link

I was getting the same issue when using python3.6 but switching to python2.7 resolved it

@MaggieQi
Copy link
Member

MaggieQi commented Jun 4, 2019

@Arctanxy If you directly use the SPTAG.sln to build the project, it will download python2.7 library and use python2.7 library to generate the dll. If you want to use python3.6, you can use cmake and make sure that python include and library are correct.

@Arctanxy
Copy link
Author

Arctanxy commented Jun 7, 2019

Thank you @MaggieQi

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

No branches or pull requests

3 participants