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 (initftext) #18

Open
albertyou2 opened this issue Nov 22, 2016 · 1 comment
Open

Comments

@albertyou2
Copy link

when I have done with ' make all '
I moved the ftext.so to 'tools' dir,then I ran this command :

python segmentation.py 1.png

Then I got this error:
import ftext
Traceback (most recent call last):
File "", line 1, in
ImportError: dynamic module does not define init function (initftext)

My system is " OS x EI Capitan ",python version is 2.7.11
Does any one know how to solve it?

@MichalBusta
Copy link
Owner

you have probably 2 versions of python - system and cellar - cmake finds the system version.

something like: link_directories(/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib)
include_directories("/usr/include/python2.7")
include_directories("/usr/local/lib/python2.7/dist-packages/numpy/core/include")

may help

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