I am trying to generate the snap for subtitld, and I am getting this error saying libffms2
is not available. But the library is inside the snap.
Traceback (most recent call last):
File "/snap/subtitld/266/bin/subtitld", line 8, in <module>
sys.exit(main())
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/__main__.py", line 303, in main
app.main = Subtitld()
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/__main__.py", line 102, in __init__
from subtitld.modules import file_io
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/modules/file_io.py", line 22, in <module>
from subtitld.modules import waveform
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/modules/waveform.py", line 11, in <module>
import ffms2
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/__init__.py", line 33, in <module>
from .libffms2 import *
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/libffms2.py", line 9, in <module>
lib = get_library(
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/get_library.py", line 44, in get_library
raise OSError("can’t find {!r} library".format(lib_name))
OSError: can’t find 'ffms2' library
Even if I install it on my system (of course, just as a test; asking users to install libraries to be able to use snap-based apps is out of question), the snap is not able to find the file (but strangely it knows what is the version/filename of the library in my system).
Traceback (most recent call last):
File "/snap/subtitld/266/bin/subtitld", line 8, in <module>
sys.exit(main())
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/__main__.py", line 303, in main
app.main = Subtitld()
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/__main__.py", line 102, in __init__
from subtitld.modules import file_io
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/modules/file_io.py", line 22, in <module>
from subtitld.modules import waveform
File "/snap/subtitld/266/lib/python3.8/site-packages/subtitld/modules/waveform.py", line 11, in <module>
import ffms2
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/__init__.py", line 33, in <module>
from .libffms2 import *
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/libffms2.py", line 9, in <module>
lib = get_library(
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/get_library.py", line 45, in get_library
return load_library(
File "/snap/subtitld/266/lib/python3.8/site-packages/ffms2/get_library.py", line 167, in load_library
return ctypes.CDLL(
File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libffms2.so.5: cannot open shared object file: No such file or directory
What am I missing? Here is the snapcraft.yml file.