maciejkula/glove-python

import glove error: Symbol not found: _GOMP_parallel

Servot opened this issue · 5 comments

After successfully installing glove_python with pip install on Mac Sierra 10.12.6, I get the following import error when trying to import the package:
from glove import Glove
from glove import Corpus

ImportError: dlopen(/Users/thomas/anaconda/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so, 2): Symbol not found: _GOMP_parallel
Referenced from: /Users/thomas/anaconda/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/thomas/anaconda/lib/python3.6/site-packages/glove/glove_cython.cpython-36m-darwin.so

Does anyone know how to resolve this issue?

Hi,

I ran into this exact issue as well and am unable to import glove. I was wondering if you ended up solving this issue. If so, could you let me know your solution?

Thanks!

I had the same problem - turned out out an anaconda installation had confused the linker path. Check the output of the make (= python setup.py build_ext) script when compiling glove_cython, mine had two "-L" link path arguments, and removing one of them solved the problem.

Hi @Servot and @eric-l-zhang , I have encountered a similar issue and wondering whether you found a solution!!

I am also facing the same issue. Any help is highly appreciated.

Error:
from .glove_cython import fit_vectors, transform_paragraph
ImportError: dlopen(/Users/ank/lib/python2.7/site-packages/glove/glove_cython.so, 2): Library not loaded: @rpath/libomp.dylib

I am also facing the same issue. Any help is highly appreciated.

Error:
from .glove_cython import fit_vectors, transform_paragraph
ImportError: dlopen(/Users/ank/lib/python2.7/site-packages/glove/glove_cython.so, 2): Library not loaded: @rpath/libomp.dylib

I was able to fix the issue by switching the python version to 3.6 and Installing libgcc.
I believe, the glove has some issues with python 3.7
So I would recommend switching from your current version to 3.6.