Open yasonk opened 5 years ago
Thanks for the PR! I'll do some tests and come back to you hopefully by next Monday.
Not sure if it worked I'm getting a new error when I import and so far cannot resolve it: In py36
import sent2vec
ImportError: dynamic module does not define module export function (PyInit_sent2vec)
In py27
ImportError: dynamic module does not define init function (initsent2vec)
I pulled your code and had the same issue on Ubuntu. Any luck on your side?
No, the only thing that I found was that the issue is not cython to python version issue (which seems to be the case here because both py2 and py3 are having the same issue). The only other time that people were able to resolve this issue was cython pulling invalid dependencies and generating a corrupted module (or something like that).
For me, the Mac build error got resolved by adding -std=libc++
to the compile-options as shown in the below link:
https://stackoverflow.com/questions/53809584/issues-about-installing-pcl-in-my-computer
A few issues were created for mac builds: https://github.com/epfml/sent2vec/issues/60 https://github.com/epfml/sent2vec/issues/48
This code allowed me to install sent2vec using
pip install .
Most of the code is copied from https://github.com/facebookresearch/fastText/blob/master/setup.py, but had to also remove thert
library.