OSError: Could not load shared object file: libllvmlite.so
See original GitHub issueDescription
I was trying to install libora on a aarch64 machine by following the docs:
$ sudo apt install python3-dev
$ pip3 install Cython --user
$ wget https://github.com/librosa/librosa/archive/0.7.2.tar.gz
$ tar -xvf 0.7.2.tar.gz librosa-0.7.2/
$ cd librosa-0.7.2/
$ python3 setup.py install
Ran into outdated TBB error:
numba/np/ufunc/tbbpool.cpp:89:108: error: no matching function for call to ‘tbb::internal::task_scheduler_observer_v3::task_scheduler_observer_v3(tbb::interface7::task_arena&)’
fix_tls_observer(tbb::task_arena &arena, int mask) : tbb::task_scheduler_observer(arena), mask_val(mask)
So I began building TBB from source (also had to build cmake because linux amirite):
$ sudo apt install libffi-dev
$ git clone https://github.com/wjakob/tbb.git
$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install
Back to librosa, finally got everything to compile:
$ sudo python3 setup.py install
but when I try to use the library, it said that I’m missing a share object from libllvmlite.so
:
python3 -c 'print(__import__("librosa").__path__)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/librosa-0.7.2-py3.7.egg/librosa/__init__.py", line 12, in <module>
from . import core
File "/usr/local/lib/python3.7/dist-packages/librosa-0.7.2-py3.7.egg/librosa/core/__init__.py", line 125, in <module>
from .time_frequency import * # pylint: disable=wildcard-import
File "/usr/local/lib/python3.7/dist-packages/librosa-0.7.2-py3.7.egg/librosa/core/time_frequency.py", line 11, in <module>
from ..util.exceptions import ParameterError
File "/usr/local/lib/python3.7/dist-packages/librosa-0.7.2-py3.7.egg/librosa/util/__init__.py", line 77, in <module>
from .utils import * # pylint: disable=wildcard-import
File "/usr/local/lib/python3.7/dist-packages/librosa-0.7.2-py3.7.egg/librosa/util/utils.py", line 10, in <module>
import numba
File "/usr/local/lib/python3.7/dist-packages/numba-0.49.1-py3.7-linux-aarch64.egg/numba/__init__.py", line 15, in <module>
from numba.core import config
File "/usr/local/lib/python3.7/dist-packages/numba-0.49.1-py3.7-linux-aarch64.egg/numba/core/config.py", line 16, in <module>
import llvmlite.binding as ll
File "/usr/local/lib/python3.7/dist-packages/llvmlite-0.32.1-py3.7.egg/llvmlite/binding/__init__.py", line 4, in <module>
from .dylib import *
File "/usr/local/lib/python3.7/dist-packages/llvmlite-0.32.1-py3.7.egg/llvmlite/binding/dylib.py", line 3, in <module>
from llvmlite.binding import ffi
File "/usr/local/lib/python3.7/dist-packages/llvmlite-0.32.1-py3.7.egg/llvmlite/binding/ffi.py", line 153, in <module>
raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file: libllvmlite.so
llvmlite seems to be installed:
$ python3 -c 'print(__import__("llvmlite").__path__)'
['/usr/local/lib/python3.7/dist-packages/llvmlite-0.32.1-py3.7.egg/llvmlite']
Although I can’t find any .so file, I would really appreciate the help if you can point me to the right direction.
Versions
import platform; print(platform.platform())
Linux-4.14.98-imx-aarch64-with-Mendel-mendel-day-day
import sys; print("Python", sys.version)
Python 3.7.3
import numpy; print("NumPy", numpy.__version__)
NumPy 1.16.2
import scipy; print("SciPy", scipy.__version__)
SciPy 1.1.0
import librosa; print("librosa", librosa.__version__)
...
raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file: libllvmlite.so
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
OSError: Could not load shared object file: llvmlite.dll (SHAP ...
I want to use SHAP with Anaconda. Prequisites: llvmlite is installed: pip install llvmlite Requirement already satisfied: llvmlite in c:\users..
Read more >numba/numba - Gitter
File "C:\Users--\Anaconda3\lib\site-packages\llvmlite\binding\ffi.py", line 153, in <module> raise OSError("Could not load shared object file: ...
Read more >记录一下炼丹解决的问题01 - CSDN博客
OSError : Could not load shared object file: libllvmlite.so. 解决办法是: pip install numba==0.48.0 --ignore-installed llvmlite. reference:.
Read more >How to install numba.openmp
This doesn't seem to come with standard numbs installation. from numba.openmp ... OSError: Could not load shared object file: libllvmlite.so.
Read more >llvmlite - PyPI
A Lightweight LLVM Python Binding for Writing JIT Compilers · A small C wrapper around the parts of the LLVM C++ API we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, for those who are interested in getting this working on the Coral Dev Board: https://gist.github.com/Namburger/82e86f2d3514288aa46c9183fc53c809
@stuartarchibald @bmcfee Yelp, it works, need more works on my googling abilities :p