-
Notifications
You must be signed in to change notification settings - Fork 33
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
OSError: /path_to_file/libaudresample.so: cannot open shared object file: No such file or directory #79
Comments
The place it tries to load For example, if I install $ virtualenv --python=python3.9 test
$ source test/bin/activate
$ pip install audresample I have the needed file and can also import $ ls test/lib/python3.9/site-packages/audresample/core/bin/linux/libaudresample.so
test/lib/python3.9/site-packages/audresample/core/bin/linux/libaudresample.so
$ python -c "import audresample; print(audresample.__version__)"
1.2.1 |
It seems like the following code we use inside |
Thank you for your answers. With ls ... my pi does find the .so file, but I am not even able to import audresample via the import-statement. The Error-Statement is basically the same as above. Do you think there could be a workaround to find the correct folder? |
Did you try to copy it manually to: |
The file is already there, with permissions set to be executable and viewable by everyone. |
I see, then the problem is not that it cannot find the file, but rather that it cannot load the shared library. |
Seems so, but I am somewhat lost why this could be the case. |
It seems you are trying to run on a Raspberry Pi, correct? |
Yes, I am using a Raspberry Pi. |
Unfortunately, there is no There is the option to create a docker image for |
Okay, thank you very much! |
Could you maybe use
|
|
With lscpu I get the following info: |
We build a binary on our RaspberryPi which has: $ uname -m
armv7l As a test you could copy it to the |
Thank you! |
I guess, I made an error in providing you the ARMv7 binary as you have 64-bit. I attached here a ARMv8 binary that works with 64-bit, could you try again if this works? |
Hi, sorry for the late answer! After inserting the file I get a new Error-Message: OSError: /home/pi1/.local/lib/python3.9/site-packages/opensmile/core/bin/linux/libSMILEapi.so: cannot open shared object file: No such file or directory Although the file exists in this place. |
Thanks for the feedback. This means The error you are seeing now is due to missing support for ARMv8 in |
With release 2.5.0 of |
Hi,
my Issue may or may not be related to #26. When I try to import opensmile, right at the beginning of a python script, this error is thrown:
File "/media/pi1/E04C-9C99/Audio_Pi/SentenceDetect.py", line 11, in
import opensmile
File "/usr/local/lib/python3.9/dist-packages/opensmile/init.py", line 6, in
from opensmile.core.smile import (
File "/usr/local/lib/python3.9/dist-packages/opensmile/core/smile.py", line 10, in
import audinterface
File "/usr/local/lib/python3.9/dist-packages/audinterface/init.py", line 2, in
from audinterface import utils
File "/usr/local/lib/python3.9/dist-packages/audinterface/utils/init.py", line 1, in
from audinterface.core.utils import (
File "/usr/local/lib/python3.9/dist-packages/audinterface/core/utils.py", line 11, in
import audresample
File "/home/pi1/audresample/audresample/init.py", line 2, in
from audresample.core.api import (
File "/home/pi1/audresample/audresample/core/api.py", line 8, in
from audresample.core.lib import lib
File "/home/pi1/audresample/audresample/core/lib.py", line 29, in
lib = ctypes.cdll.LoadLibrary(lib_path)
File "/usr/lib/python3.9/ctypes/init.py", line 452, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.9/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/pi1/audresample/audresample/core/bin/linux/libaudresample.so: cannot open shared object file: No such file or directory
OS: pi os 64 bit
python version: 3.9.2
gcc( if needed, looking at issue #33): Debian 10.2.1-6
I already tried to set LD_LIBRARY_PATH, but this did not resolve the issue.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: