From a8e6059a8cf389625e7fda7088da3cfe567af6d2 Mon Sep 17 00:00:00 2001 From: dvp Date: Thu, 4 Jan 2024 16:02:52 +0300 Subject: [PATCH] fix: return nlopt preloading to avoid import errors --- src/mckit/_init_dynamic_libraries.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mckit/_init_dynamic_libraries.py b/src/mckit/_init_dynamic_libraries.py index ef4c207b..a74c087a 100644 --- a/src/mckit/_init_dynamic_libraries.py +++ b/src/mckit/_init_dynamic_libraries.py @@ -74,7 +74,10 @@ def _init(): if WIN: for _dir in SHARED_LIBRARY_DIRECTORIES: os.add_dll_directory(str(_dir)) - _preload_library("mkl_rt", max_version=2) + _preload_library("mkl_rt") + _preload_library( + "nlopt" + ) # otherwise: ImportError: libnlopt.so.0: cannot open shared object fileg _init()