You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _get_lib():
# check if the library exists and load it
path = pathlib.Path(
os.environ.get("MLFLOW_GO_LIBRARY_PATH", pathlib.Path(__file__).parent.as_posix())
).joinpath(_get_lib_name()).absolute()
if path.is_file():
return _load_lib(path)
logging.getLogger(__name__).warn("Go library not found, building it now")
# build the library in a temporary directory and load it
with tempfile.TemporaryDirectory() as tmpdir:
return _load_lib(
build_lib(
pathlib.Path(__file__).parent.parent,
pathlib.Path(tmpdir),
)
)
is being removed after it was invoked. In Windows you cannot delete a file you are executing, this is allowed on unix.
Steps to reproduce:
This will not work on Windows, workaround would be to run
python -m mlflow_go.lib . .
and set theMLFLOW_GO_LIBRARY_PATH
environment variable to"."
.The text was updated successfully, but these errors were encountered: