Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run on ubuntu 22.04 #334

Open
AlbertZhangHIT opened this issue Feb 5, 2025 · 1 comment
Open

failed to run on ubuntu 22.04 #334

AlbertZhangHIT opened this issue Feb 5, 2025 · 1 comment

Comments

@AlbertZhangHIT
Copy link

Hi,
I installed decord on ubuntu 22.04 following the guide, but it failed running with popping up errors like

    import decord
  File "/root/.local/lib/python3.10/site-packages/decord-0.6.0-py3.10-linux-aarch64.egg/decord/__init__.py", line 4, in <module>
    from ._ffi.runtime_ctypes import TypeCode
  File "/root/.local/lib/python3.10/site-packages/decord-0.6.0-py3.10-linux-aarch64.egg/decord/_ffi/runtime_ctypes.py", line 8, in <module>
    from .base import _LIB, check_call
  File "/root/.local/lib/python3.10/site-packages/decord-0.6.0-py3.10-linux-aarch64.egg/decord/_ffi/base.py", line 47, in <module>
    _LIB, _LIB_NAME = _load_lib()
  File "/root/.local/lib/python3.10/site-packages/decord-0.6.0-py3.10-linux-aarch64.egg/decord/_ffi/base.py", line 39, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
  File "/root/miniconda3/envs/torch/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib/aarch64-linux-gnu/libavfilter.so.7: undefined symbol: av_timecode_make_smpte_tc_string2, version LIBAVUTIL_56

I have no ideas how to solve this. Could someone help me out?

@AlbertZhangHIT
Copy link
Author

AlbertZhangHIT commented Feb 5, 2025

I figured it out that it was caused by torchvision 0.16.0 since the video_reader.so in torchvision depends on its library libavutil.c2c2d4cc.so.56 in torchvision.libs, which was loaded first if torchvision is imported before decord.

Does someone has a solution? Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant