Skip to content

Commit

Permalink
fix: return nlopt preloading to avoid import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dvp committed Jan 4, 2024
1 parent 4eaa239 commit a8e6059
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mckit/_init_dynamic_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit a8e6059

Please sign in to comment.