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

ImportError: dynamic module does not define init function (init_SPTAG) #75

Closed
MrHwc opened this issue Jul 8, 2019 · 2 comments
Closed

Comments

@MrHwc
Copy link

MrHwc commented Jul 8, 2019

When I run the official test python code, I get an error:
Traceback (most recent call last):
File "testSPTAG.py", line 4, in
import SPTAG
File "SPTAG/Release/SPTAG.py", line 17, in
_SPTAG = swig_import_helper()
File "SPTAG/Release/SPTAG.py", line 16, in swig_import_helper
return importlib.import_module('_SPTAG')
File "/usr/lib/python2.7/importlib/ __ init __.py", line 37, in import_module
__import __(name)
ImportError: dynamic module does not define init function (init_SPTAG)

@hudengjunai
Copy link

I just meet the same error with python2 .But I changed to python3,it works.

@MrHwc
Copy link
Author

MrHwc commented Jul 9, 2019

I just meet the same error with python2 .But I changed to python3,it works.

thank you!

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

2 participants