From 624678d554d19ae427125e737a830833d4a4706d Mon Sep 17 00:00:00 2001 From: Roman Kazantsev Date: Thu, 2 May 2024 19:50:59 +0400 Subject: [PATCH] Fix h5py issue in GHA test jobs (#24338) **Details:** Fix h5py issue in GHA test jobs: `error: libhdf5.so: cannot open shared object file: No such file or directory` **Ticket:** TBD --------- Signed-off-by: Kazantsev, Roman --- src/bindings/python/constraints.txt | 1 + src/frontends/tensorflow/tests/requirements.txt | 5 ++--- tests/constraints.txt | 2 +- tools/constraints.txt | 1 + tools/mo/requirements_tf.txt | 1 + tools/mo/requirements_tf2.txt | 1 + 6 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bindings/python/constraints.txt b/src/bindings/python/constraints.txt index 45b32a4819f..141f624b1db 100644 --- a/src/bindings/python/constraints.txt +++ b/src/bindings/python/constraints.txt @@ -16,6 +16,7 @@ wheel>=0.38.1 patchelf<=0.17.2.1 # Frontends +h5py>=3.1.0,<3.11.0 docopt~=0.6.2 paddlepaddle==2.5.2 tensorflow>=1.15.5,<2.17.0 diff --git a/src/frontends/tensorflow/tests/requirements.txt b/src/frontends/tensorflow/tests/requirements.txt index a1064f488d6..acd2541a9c5 100644 --- a/src/frontends/tensorflow/tests/requirements.txt +++ b/src/frontends/tensorflow/tests/requirements.txt @@ -1,5 +1,4 @@ -c ../../../bindings/python/constraints.txt numpy -tensorflow -# limit h5py version for Linux arm64, 3.11 version failed -h5py<3.11.0; sys_platform == 'linux' and platform_machine == 'aarch64' \ No newline at end of file +h5py +tensorflow \ No newline at end of file diff --git a/tests/constraints.txt b/tests/constraints.txt index 38527f3c045..7d7ae43ce6f 100644 --- a/tests/constraints.txt +++ b/tests/constraints.txt @@ -1,7 +1,7 @@ numpy>=1.16.6,<1.27 attrs==23.2.0 distro==1.9.0 -h5py>=3.1.0 +h5py>=3.1.0,<3.11.0 Jinja2>=2.11.2 pandas>=1.3.5 pymongo>=3.12.0 diff --git a/tools/constraints.txt b/tools/constraints.txt index e91d858e4ea..27e82e15334 100644 --- a/tools/constraints.txt +++ b/tools/constraints.txt @@ -2,6 +2,7 @@ # some package versions need to be specified in respective requirements.txt # files because the version differs between them: # tensorflow, numpy +h5py>=3.1.0,<3.11.0 mxnet~=1.2.0; sys_platform == 'win32' mxnet>=1.7.0.post2,<=1.9.1; sys_platform != 'win32' onnx>=1.8.1,<=1.15.0 diff --git a/tools/mo/requirements_tf.txt b/tools/mo/requirements_tf.txt index e32f7e076bc..f83e3ee69f4 100644 --- a/tools/mo/requirements_tf.txt +++ b/tools/mo/requirements_tf.txt @@ -1,4 +1,5 @@ -c ../constraints.txt +h5py tensorflow>=1.15.5,<2.17.0 numpy>=1.16.6,<1.26 networkx diff --git a/tools/mo/requirements_tf2.txt b/tools/mo/requirements_tf2.txt index 3aa9a1f82e5..af80835e372 100644 --- a/tools/mo/requirements_tf2.txt +++ b/tools/mo/requirements_tf2.txt @@ -1,4 +1,5 @@ -c ../constraints.txt +h5py tensorflow>=2.5,<2.17.0 numpy>=1.16.6,<1.26 networkx