sent2vec icon indicating copy to clipboard operation
sent2vec copied to clipboard

Fixing the mac build

Open yasonk opened this issue 6 years ago • 5 comments

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 the rt library.

yasonk avatar Mar 07 '19 01:03 yasonk

Thanks for the PR! I'll do some tests and come back to you hopefully by next Monday.

mpagli avatar Mar 07 '19 10:03 mpagli

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)

yasonk avatar Mar 07 '19 20:03 yasonk

I pulled your code and had the same issue on Ubuntu. Any luck on your side?

mpagli avatar Mar 27 '19 13:03 mpagli

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).

yasonk avatar Mar 27 '19 16:03 yasonk

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

kgarg8 avatar Jun 29 '21 15:06 kgarg8