OSError: cannot open file of shared objects: there is no such file or directory, even if the file is in the folder

I struggled with this for quite some time. I am trying to install Yaafe to extract an audio function. I follow the instructions here: https://github.com/Yaafe/Yaafe

Everything installs beautifully, but when I try to run the test file "frames.py", I get the following error:

  File "frames.py", line 6, in <module>
    from yaafelib import FeaturePlan, Engine, AudioFileProcessor 
  File "/usr/local/lib/python2.7/dist-packages/yaafelib/__init__.py", line 36, in <module>
    from yaafelib.core import (loadComponentLibrary,
  File "/usr/local/lib/python2.7/dist-packages/yaafelib/core.py", line 35, in <module>
    yaafecore = cdll.LoadLibrary('libyaafe-python.so')
  File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libyaafe-python.so: cannot open shared object file: No such file or directory

I have included the lib directory in LD_LIBRARY_PATH with the following command:

export LD_LIBRARY_PATH=/usr/local/lib

And indeed, when I repeat LIBRARY_PATH, it is. Also, when I check / usr / local / lib, it has the following contents:

libyaafe-components.so         libyaafe-io.so             python2.7
libyaafe-components.so.0       libyaafe-io.so.0           python3.4
libyaafe-components.so.0.70.0  libyaafe-io.so.0.70.0      site_ruby
libyaafe-core.so               libyaafe-python.so         yaafe
libyaafe-core.so.0             libyaafe-python.so.0
libyaafe-core.so.0.70.0        libyaafe-python.so.0.70.0

So it should not be all right? I do not understand what the problem is. I followed the instructions.

+4
1

, os.environ . , Python- . , Python libyaafe-python.so. , sudo (, ).

+4

All Articles