From 033df7fc33e71612c78a90b3d4290e0e53c551fb Mon Sep 17 00:00:00 2001 From: Clay Dugo Date: Fri, 21 Nov 2025 17:40:42 -0500 Subject: [PATCH] Remove RTLD_GLOBAL flag to avoid symbol conflicts with other libraries --- python/decord/_ffi/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/decord/_ffi/base.py b/python/decord/_ffi/base.py index f091a2f0..fd237410 100644 --- a/python/decord/_ffi/base.py +++ b/python/decord/_ffi/base.py @@ -36,7 +36,7 @@ def _load_lib(): """Load libary by searching possible path.""" lib_path = libinfo.find_lib_path() os.environ['PATH'] += os.pathsep + os.path.dirname(lib_path[0]) - lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL) + lib = ctypes.CDLL(lib_path[0]) # DMatrix functions lib.DECORDGetLastError.restype = ctypes.c_char_p return lib, os.path.basename(lib_path[0])