-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Describe the bug
When trying to run the BayesianTracker, The following error occurs.
[ERROR][2025/03/07 01:43:28 PM] Exception caught:
- btrack_version: 0.6.5
- system_platform: Linux-4.18.0-477.81.1.el8_8.x86_64-x86_64-with-glibc2.28
- system_python: 3.12.9 - function: <function load_library at 0x149f17f0a700>
- exception: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /btrack_env/lib/python3.12/site-packages/btrack/libs/libtracker.so)
- arguments: (PosixPath('/btrack_env/lib/python3.12/site-packages/btrack/libs/libtracker'),)
- keywords: {}
OSError Traceback (most recent call last)
File /btrack_env/lib/python3.12/site-packages/btrack/utils.py:416, in log_debug_info..wrapped_func_to_debug(*args, **kwargs)
415 try:
--> 416 return fn(*args, **kwargs)
417 except Exception as err:File /btrack_env/lib/python3.12/site-packages/btrack/libwrapper.py:74, in load_library(filename)
72 full_lib_file = str(lib_file.with_suffix(file_ext[system]))
---> 74 lib = ctypes.cdll.LoadLibrary(full_lib_file)
75 logger.info(f"Loaded btrack: {full_lib_file}") File /btrack_env/lib/python3.12/ctypes/init.py:460, in LibraryLoader.LoadLibrary(self, name) 459 def LoadLibrary(self, name):
--> 460 return self._dlltype(name)
File /btrack_env/lib/python3.12/ctypes/init.py:379, in CDLL.init(self, name, mode, handle, use_errno, use_last_error, winmode)
378 if handle is None:
--> 379 self._handle = _dlopen(self._name, mode)
380 else: OSError: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /btrack_env/lib/python3.12/site-packages/btrack/libs/libtracker.so) The above exception was the direct cause of the following exception:Exception Traceback (most recent call last)
Cell In[9], line 2 1 # initialise a tracker session using a context manager
----> 2 with btrack.BayesianTracker() as tracker:
3 4 # configure the tracker using a config file
5 tracker.configure(CONFIG_FILE)
6 tracker.max_search_radius = 50 File /btrack_env/lib/python3.12/site-packages/btrack/core.py:131, in BayesianTracker.init(self, verbose)
129 # load the library, get an instance of the engine
130 self._initialised = False
--> 131 self._lib = libwrapper.get_library()
132 self._engine = self._lib.new_interface(verbose)
134 if not verbose: File /btrack_env/lib/python3.12/site-packages/btrack/libwrapper.py:83, in get_library()
80 def get_library() -> ctypes.CDLL: # noqa: PLR0915
81 """Loads and returns the btrack shared library."""
---> 83 lib = load_library(BTRACK_LIB_PATH)
85 # deal with constructors/destructors
86 lib.new_interface.restype = ctypes.c_void_p
File /btrack_env/lib/python3.12/site-packages/btrack/utils.py:433, in log_debug_info..wrapped_func_to_debug(*args, **kwargs)
427 debug_str = "\n".join(
428 [f" - {key}: {value}" for key, value in debug_info.items()]
429 )
431 logger.error(f"Exception caught:\n{debug_str}")
--> 433 raise Exception from err Exception:
Your setup:
btrack_version: 0.6.5
system_platform: Linux-4.18.0-477.81.1.el8_8.x86_64-x86_64-with-glibc2.28
system_python: 3.12.9
Comments
Although I could manually install GLIBC_2.29 on a personally managed system, The system I am trying to run this is without sudo access.