From 03b02546b360655d118569418309c743e20c19b8 Mon Sep 17 00:00:00 2001 From: "E. G. Patrick Bos" Date: Thu, 19 Sep 2024 22:39:13 +0200 Subject: [PATCH] set upper limit for keras Keras 3 introduced a number of backwards incompatible changes that make some dependencies (shap, rise) fail. --- setup.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.cfg b/setup.cfg index e1b8038c..5736fe63 100644 --- a/setup.cfg +++ b/setup.cfg @@ -52,6 +52,8 @@ install_requires = torch <=2.3.1 # this is temporary, see #829 # tf and tfprob are required but not declared by onnx_tf tensorflow_probability[tf] + # some dependencies are still incompatible with keras 3 ((kernel)shap, rise) + keras<3 # https://setuptools.pypa.io/en/latest/userguide/datafiles.html#accessing-data-files-at-runtime importlib_resources;python_version<'3.10'