frenchcutgreenbean / UNIT3D-Upload-Checker

Scan files to upload for missing releases on UNIT3D based trackers
16 stars 2 forks source link

Failed to load library from libmediainfo.so.0 #5

Open Snake883 opened 4 months ago

Snake883 commented 4 months ago

After running the cmd ./check.py run-all -v

I receive error message: Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Trace:

Creating search data.
Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory

Error creating search_data.json: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 498, in create_search_data
    get_media_info(file_location)
  File "/home/uploadchecker/UNIT3D-Upload-Checker/mediainfo.py", line 12, in get_media_info
    media_info = MediaInfo.parse(file_location)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 434, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pymediainfo/__init__.py", line 329, in _get_library
    raise OSError(
OSError: Failed to load library from libmediainfo.so.0 - Error loading shared library libmediainfo.so.0: No such file or directory
adapowers commented 3 weeks ago

You need to have mediainfo installed on the system you're running the script on, pip installs a library for working with mediainfo but not the application itself. You'll know you have it working when you can type $ mediainfo at a command line and it does something.