diff --git a/requirements-test-libraries.txt b/requirements-test-libraries.txt index 63cf6526d..5b1786f0d 100644 --- a/requirements-test-libraries.txt +++ b/requirements-test-libraries.txt @@ -117,7 +117,7 @@ limits==3.6.0 # great-expectations as of v0.16.10 does not officially support python 3.11 yet, and the pyspark # compatibility wrapper seems to be broken for python 3.11 in this version. great-expectations==0.17.19; python_version < '3.11' -tensorflow==2.13.0 +tensorflow==2.14.0; python_version >= '3.9' pyshark==0.6.0 opencv-python==4.8.0.76 hydra-core==1.3.2 diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-tensorflow.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-tensorflow.py index 4b4d68c0e..faf220c0b 100644 --- a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-tensorflow.py +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-tensorflow.py @@ -72,6 +72,10 @@ def _submodules_filter(x): if is_module_satisfies("tensorflow >= 2.6.0"): hiddenimports += collect_submodules('keras') + # Starting with 2.14.0, we need `ml_dtypes` among hidden imports. + if is_module_satisfies("tensorflow >= 2.14.0"): + hiddenimports += ['ml_dtypes'] + excludedimports = excluded_submodules # Suppress warnings for missing hidden imports generated by this hook.