LostXine / naive-scrcpy-client

A naive client of Scrcpy in Python.
MIT License
76 stars 23 forks source link

OSError: libwebp.so.6 on Ubuntu 22 #5

Open babu-s23 opened 1 year ago

babu-s23 commented 1 year ago

Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [self.run](http://self.run/)() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/XXX/handlers/NaiveScrcpyClient.py", line 105, in _run_decoder lib_avcodec = ctypes.CDLL(avcodec_lib) File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: libwebp.so.6: cannot open shared object file: No such file or directory

babu-s23 commented 1 year ago
  1. Previously was running on Ubuntu 18, this was working fine. With recent Ubuntu 22 I couldn't run this. When i checked "libwebp.so.6" is not available in Ubuntu 22. As it is moved to "libwebp.so.7"
  2. I tried to push the missing x86 file from ubuntu 18 to ubuntu 22 with correct permissions still no luck
  3. I tried to create a symbolic link between the library files but doesn't help.
LostXine commented 1 year ago

Please check whether ffmpeg can run in your environment. If you only need to decode video frames, maybe take a look at this new solution: https://github.com/LostXine/naive-android-ssr

babu-s23 commented 1 year ago

We are trying to replicate uiautomatorviewer kind of for our tool. For which we need feed from the device.

babu-s23 commented 1 year ago

I want for image also