seomoz / word2gauss

Gaussian word embeddings
MIT License
190 stars 52 forks source link

python 3 issue #20

Open urigoren opened 7 years ago

urigoren commented 7 years ago

The following import works on python2 on my machine, and does not on python3

>>> from word2gauss import GaussianEmbedding, iter_pairs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/urig/Workspaces/mine/word2gauss/word2gauss/__init__.py", line 2, in <module>
    from .embeddings import GaussianEmbedding
ImportError: dlopen(/Users/urig/Workspaces/mine/word2gauss/word2gauss/embeddings.so, 2): Symbol not found: _PyCObject_Type
  Referenced from: /Users/urig/Workspaces/mine/word2gauss/word2gauss/embeddings.so
  Expected in: flat namespace
 in /Users/urig/Workspaces/mine/word2gauss/word2gauss/embeddings.so
matt-peters commented 7 years ago

word2gauss only supports python 2.7 right now. There is an open PR that gets most of the way to python 3 #12 that has been abandoned, take a look and it might help.