Scrypted running in Home Assistant Python Codecs error

I am trying to set up Homekit Secure Video on Scrypted to work with my Wyze cameras in Home Assistant.

I installed the plugin, OpenCV Motion Detection, to detect motion for Homekit Secure Video. But it does not show up in the Homekit configuration page, my assumption is that it is because of the Python Codecs plugin not loading and giving an error.

Thank you in advance!



Phython Codecs Error:

server version: 0.7.16
plugin version: @scrypted/python-codecs 0.1.12
########################
3/18/2023, 7:04:19 PM
########################
python version: python3.9
requirements.txt (up to date)
# plugin
PyGObject>=3.30.4; sys_platform != 'win32'
# libav doesnt work on arm7
av>=10.0.0; sys_platform != 'linux' or platform_machine == 'x86_64' or platform_machine == 'aarch64'
pyvips

site-packages: /data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages
plugin failed to start
Traceback (most recent call last):
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages/pyvips/__init__.py", line 19, in <module>
    import _libvips
ModuleNotFoundError: No module named '_libvips'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/server/node_modules/@scrypted/server/python/plugin_remote.py", line 514, in loadZip
    from main import create_scrypted_plugin  # type: ignore
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/zip/1-27162d8469a579f2f535007f1bb8582b.zip/main.py", line 5, in <module>
    import gstreamer
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/zip/1-27162d8469a579f2f535007f1bb8582b.zip/gstreamer.py", line 6, in <module>
    import pyvips
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages/pyvips/__init__.py", line 71, in <module>
    vips_lib = ffi.dlopen(_vips_libname)
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages/cffi/api.py", line 150, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages/cffi/api.py", line 832, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/data/scrypted_data/plugins/@scrypted/python-codecs/python3.9-Linux-aarch64/lib/python3.9/site-packages/cffi/api.py", line 827, in _load_backend_lib
    raise OSError(msg)
OSError: cannot load library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory.  Additionally, ctypes.util.find_library() did not manage to locate a library called 'libvips.so.42'

I tried Googleing and searched the plugin’s npm site, but could not find a fix.

1 Like

Which flavour of Scrypted are you using? If you’re using Thin or Lite then it will have lots of dependencies removed, try installing ‘normal’ Scrypted instead

How can you specify what flavour of scrypted we’re using? I see no option in the configuration panel of the add-on.

Thanks. I forgot about this post. Scrypted works now with a new update. Thank you for your help.