Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed to downgrade numpy and reinstall libllvmlite & numba #84

Open
BBischof opened this issue Oct 17, 2021 · 2 comments
Open

Needed to downgrade numpy and reinstall libllvmlite & numba #84

BBischof opened this issue Oct 17, 2021 · 2 comments

Comments

@BBischof
Copy link

I tried installing vectorizers on a fresh pyenv and I got this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "vectorizers-master/vectorizers/__init__.py", line 1, in <module>
    from .token_cooccurrence_vectorizer import TokenCooccurrenceVectorizer
  File "vectorizers/token_cooccurrence_vectorizer.py", line 1, in <module>
    from .ngram_vectorizer import ngrams_of
  File "vectorizers/ngram_vectorizer.py", line 2, in <module>
    import numba
  File "numba-0.54.1-py3.9-macosx-11.3-x86_64.egg/numba/__init__.py", line 19, in <module>
    from numba.core import config
  File "numba-0.54.1-py3.9-macosx-11.3-x86_64.egg/numba/core/config.py", line 16, in <module>
    import llvmlite.binding as ll
  File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/__init__.py", line 4, in <module>
    from .dylib import *
  File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/dylib.py", line 3, in <module>
    from llvmlite.binding import ffi
  File "llvmlite-0.37.0-py3.9.egg/llvmlite/binding/ffi.py", line 191, in <module>
    raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file: libllvmlite.dylib

This was resolvable for me by uninstalling and reinstalling libllvmlite & numba after ensuring numpy<1.21, e.g.

pip install numpy==1.20
pip uninstall libllvmlite
pip uninstall numba
pip install libllvmlite
pip install numba

This is obviously not a big deal, but in case others bump this, maybe a ref in the README can save them a google. 🤷

@lmcinnes
Copy link
Contributor

Thanks. There seem to be some issues in general with numpy 1.21 and numba not quite playing together nicely. It seems to have been largely confined to Mac's as far as I know. Do you have an M1 Mac by any chance?

Regardless, thanks for the report and documenting a fix.

@BBischof
Copy link
Author

BBischof commented Oct 18, 2021

Nah still on intel but yes on Mac hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants