glove-python icon indicating copy to clipboard operation
glove-python copied to clipboard

import glove error: Symbol not found: _GOMP_parallel

Open Servot opened this issue 7 years ago • 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?

Servot avatar Nov 22 '17 15:11 Servot

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!

eric-l-zhang avatar May 22 '18 05:05 eric-l-zhang

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.

mpurver avatar Jun 21 '18 14:06 mpurver

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

rudra0713 avatar Oct 10 '18 04:10 rudra0713

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

ankyAgrawal avatar Apr 19 '19 04:04 ankyAgrawal

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.

ankyAgrawal avatar Apr 19 '19 04:04 ankyAgrawal