sbraz / pymediainfo

A Python wrapper around the MediaInfo library
https://pymediainfo.readthedocs.org/
Other
316 stars 57 forks source link

OSError: Failed to load library; Error occurred in macOS version 11.0.1 #106

Closed austin-365 closed 3 years ago

austin-365 commented 3 years ago
  File "video_info.py", line 44, in <module>
    meida_info = json.loads(MediaInfo.parse(os.path.join(file_path, item)).to_json()) #, output="json")
  File "/Library/Python/3.8/site-packages/pymediainfo/__init__.py", line 421, in parse
    lib, handle, lib_version_str, lib_version = cls._get_library(library_file)
  File "/Library/Python/3.8/site-packages/pymediainfo/__init__.py", line 323, in _get_library
    raise OSError("Failed to load library")
OSError: Failed to load library
austin-365 commented 3 years ago

I installed it by 'sudo pip3 install pymediainfo', but error occur while using it. I wonder how can I install 'libmediainfo' in macOS 11.0.1.

sbraz commented 3 years ago

Hello, What version did pip install? Can you show me the output of the pip command? There is a wheel (pymediainfo-5.0.3-py3-none-macosx_10_9_x86_64.whl) but maybe it's not compatible with MacOS 11.

sbraz commented 3 years ago

Please also check that you are running the latest pip version.

austin-365 commented 3 years ago

Please also check that you are running the latest pip version.

The old pip version is 19, and after I upgrade it, all things work! thank you sir!