jackersson / gstreamer-python

168 stars 52 forks source link

libgst_objects_info_meta.so: cannot open shared object file: No such file or directory #2

Closed jefflgaol closed 4 years ago

jefflgaol commented 4 years ago

After executed the installation part, I tried to import from pygst_utils.gst_objects_info_meta import gst_meta_write and got an error:

>>> from pygst_utils.gst_objects_info_meta import gst_meta_write
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/pygst_utils/gst_objects_info_meta.py", line 27, in <module>
    libc = CDLL(os.path.join(cwd, "3rd_party/gstreamer/build/libgst_objects_info_meta.so"))
  File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.6/dist-packages/pygst_utils/3rd_party/gstreamer/build/libgst_objects_info_meta.so: cannot open shared object file: No such file or directory

Any ideas on how to solve it?

jefflgaol commented 4 years ago

I found out the problem. Previously, I reset my laptop because of some considerations, and I didn't have any CMake installed. Realizing in your build.sh includes the CMake, I need to install the CMake first. I think it should be in requirements.txt.