Skip to content

{lib}[GCCcore/13.3.0,foss/2024a,gfbf/2024a] TensorFlow v2.17.1, tensorboard v2.18.0, Bazel v6.5.0#22761

Closed
pavelToman wants to merge 2 commits intoeasybuilders:developfrom
pavelToman:20250415105351_new_pr_TensorFlow2171
Closed

{lib}[GCCcore/13.3.0,foss/2024a,gfbf/2024a] TensorFlow v2.17.1, tensorboard v2.18.0, Bazel v6.5.0#22761
pavelToman wants to merge 2 commits intoeasybuilders:developfrom
pavelToman:20250415105351_new_pr_TensorFlow2171

Conversation

@pavelToman
Copy link
Collaborator

@pavelToman pavelToman commented Apr 15, 2025

(created using eb --new-pr)
requires easyblock update: easybuilders/easybuild-easyblocks#3699
Run:
eb --from-pr 22761 --include-easyblocks-from-pr 3699 --rebuild --robot

….0-gfbf-2024a.eb, Bazel-6.5.0-GCCcore-13.3.0.eb and patches: patch1.1-fix_setup.py.patch, patch2.1-disable-tf32-in-fused-matmul-tests.patch
@github-actions
Copy link

github-actions bot commented Apr 15, 2025

Updated software Bazel-6.5.0-GCCcore-13.3.0.eb

Diff against Bazel-7.4.1-GCCcore-13.3.0.eb

easybuild/easyconfigs/b/Bazel/Bazel-7.4.1-GCCcore-13.3.0.eb

diff --git a/easybuild/easyconfigs/b/Bazel/Bazel-7.4.1-GCCcore-13.3.0.eb b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
index b05c573f28..ce8b05d033 100644
--- a/easybuild/easyconfigs/b/Bazel/Bazel-7.4.1-GCCcore-13.3.0.eb
+++ b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
@@ -1,5 +1,5 @@
 name = 'Bazel'
-version = '7.4.1'
+version = '6.5.0'
 
 homepage = 'https://bazel.io/'
 description = """Bazel is a build tool that builds code quickly and reliably.
@@ -9,19 +9,53 @@ toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
 
 source_urls = ['https://github.com/bazelbuild/%(namelower)s/releases/download/%(version)s']
 sources = ['%(namelower)s-%(version)s-dist.zip']
-checksums = ['83386618bc489f4da36266ef2620ec64a526c686cf07041332caff7c953afaf5']
+patches = ['Bazel-6.3.1_add-symlinks-in-runfiles.patch']
+checksums = [
+    {'bazel-6.5.0-dist.zip': 'fc89da919415289f29e4ff18a5e01270ece9a6fe83cb60967218bac4a3bb3ed2'},
+    {'Bazel-6.3.1_add-symlinks-in-runfiles.patch': '81db53aa87229557480b6f719c99a0f1af9c69dfec12185451e520b0128c3ae2'},
+]
 
 builddependencies = [
     ('binutils', '2.42'),
     ('Python', '3.12.3'),
     ('Zip', '3.0'),
 ]
-dependencies = [
-    ('Java', '21.0.2', '', SYSTEM),
-]
+
+dependencies = [('Java', '11', '', SYSTEM)]
 
 runtest = True
-testopts = "--sandbox_add_mount_pair=$TMPDIR "
-testopts += "-- //examples/cpp:hello-success_test //examples/py/... //examples/py_native:test //examples/shell/..."
+pretestopts = "sed -i 's/assertEquals/assertEqual/g' examples/py_native/test.py examples/py_native/fail.py && "
+testopts = "-- //examples/cpp:hello-success_test //examples/py/... //examples/py_native:test //examples/shell/..."
 
 moduleclass = 'devel'
+
+# E1: OK
+    # -> in new python there is `assertEqual` not `assertEquals` -> update by sed in pretestopts = OK
+    # <- failed on tests <- log3.txt
+    # FAIL: //examples/py_native:test (see /tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmp7876jg7o-bazel-root/e91c2ecae4343a3587e799b14875d5b6/execroot/io_bazel/bazel-out/k8-fastbuild/testlogs/examples/py_native/test/test.log)
+        # exec ${PAGER:-/usr/bin/less} "$0" || exit 1
+        # Executing tests from //examples/py_native:test
+        # -----------------------------------------------------------------------------
+        # EE
+        # ======================================================================
+        # ERROR: test_fib (__main__.TestGetNumber.test_fib)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 14, in test_fib
+        #     self.assertEquals(Fib(5), 8)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ======================================================================
+        # ERROR: test_ok (__main__.TestGetNumber.test_ok)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 11, in test_ok
+        #     self.assertEquals(GetNumber(), 42)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ----------------------------------------------------------------------
+        # Ran 2 tests in 0.004s
+
+        # FAILED (errors=2)
\ No newline at end of file
Diff against Bazel-6.1.0-GCCcore-12.3.0.eb

easybuild/easyconfigs/b/Bazel/Bazel-6.1.0-GCCcore-12.3.0.eb

diff --git a/easybuild/easyconfigs/b/Bazel/Bazel-6.1.0-GCCcore-12.3.0.eb b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
index 1bacc7b936..ce8b05d033 100644
--- a/easybuild/easyconfigs/b/Bazel/Bazel-6.1.0-GCCcore-12.3.0.eb
+++ b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
@@ -1,29 +1,61 @@
 name = 'Bazel'
-version = '6.1.0'
+version = '6.5.0'
 
 homepage = 'https://bazel.io/'
 description = """Bazel is a build tool that builds code quickly and reliably.
 It is used to build the majority of Google's software."""
 
-toolchain = {'name': 'GCCcore', 'version': '12.3.0'}
+toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
 
 source_urls = ['https://github.com/bazelbuild/%(namelower)s/releases/download/%(version)s']
 sources = ['%(namelower)s-%(version)s-dist.zip']
 patches = ['Bazel-6.3.1_add-symlinks-in-runfiles.patch']
 checksums = [
-    {'bazel-6.1.0-dist.zip': 'c4b85675541cf66ee7cb71514097fdd6c5fc0e02527243617a4f20ca6b4f2932'},
+    {'bazel-6.5.0-dist.zip': 'fc89da919415289f29e4ff18a5e01270ece9a6fe83cb60967218bac4a3bb3ed2'},
     {'Bazel-6.3.1_add-symlinks-in-runfiles.patch': '81db53aa87229557480b6f719c99a0f1af9c69dfec12185451e520b0128c3ae2'},
 ]
 
 builddependencies = [
-    ('binutils', '2.40'),
-    ('Python', '3.11.3'),
+    ('binutils', '2.42'),
+    ('Python', '3.12.3'),
     ('Zip', '3.0'),
 ]
 
 dependencies = [('Java', '11', '', SYSTEM)]
 
 runtest = True
+pretestopts = "sed -i 's/assertEquals/assertEqual/g' examples/py_native/test.py examples/py_native/fail.py && "
 testopts = "-- //examples/cpp:hello-success_test //examples/py/... //examples/py_native:test //examples/shell/..."
 
 moduleclass = 'devel'
+
+# E1: OK
+    # -> in new python there is `assertEqual` not `assertEquals` -> update by sed in pretestopts = OK
+    # <- failed on tests <- log3.txt
+    # FAIL: //examples/py_native:test (see /tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmp7876jg7o-bazel-root/e91c2ecae4343a3587e799b14875d5b6/execroot/io_bazel/bazel-out/k8-fastbuild/testlogs/examples/py_native/test/test.log)
+        # exec ${PAGER:-/usr/bin/less} "$0" || exit 1
+        # Executing tests from //examples/py_native:test
+        # -----------------------------------------------------------------------------
+        # EE
+        # ======================================================================
+        # ERROR: test_fib (__main__.TestGetNumber.test_fib)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 14, in test_fib
+        #     self.assertEquals(Fib(5), 8)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ======================================================================
+        # ERROR: test_ok (__main__.TestGetNumber.test_ok)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 11, in test_ok
+        #     self.assertEquals(GetNumber(), 42)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ----------------------------------------------------------------------
+        # Ran 2 tests in 0.004s
+
+        # FAILED (errors=2)
\ No newline at end of file
Diff against Bazel-6.3.1-GCCcore-12.2.0.eb

easybuild/easyconfigs/b/Bazel/Bazel-6.3.1-GCCcore-12.2.0.eb

diff --git a/easybuild/easyconfigs/b/Bazel/Bazel-6.3.1-GCCcore-12.2.0.eb b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
index 8c284f50a4..ce8b05d033 100644
--- a/easybuild/easyconfigs/b/Bazel/Bazel-6.3.1-GCCcore-12.2.0.eb
+++ b/easybuild/easyconfigs/b/Bazel/Bazel-6.5.0-GCCcore-13.3.0.eb
@@ -1,29 +1,61 @@
 name = 'Bazel'
-version = '6.3.1'
+version = '6.5.0'
 
 homepage = 'https://bazel.io/'
 description = """Bazel is a build tool that builds code quickly and reliably.
 It is used to build the majority of Google's software."""
 
-toolchain = {'name': 'GCCcore', 'version': '12.2.0'}
+toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
 
 source_urls = ['https://github.com/bazelbuild/%(namelower)s/releases/download/%(version)s']
 sources = ['%(namelower)s-%(version)s-dist.zip']
 patches = ['Bazel-6.3.1_add-symlinks-in-runfiles.patch']
 checksums = [
-    {'bazel-6.3.1-dist.zip': '2676319e86c5aeab142dccd42434364a33aa330a091c13562b7de87a10e68775'},
+    {'bazel-6.5.0-dist.zip': 'fc89da919415289f29e4ff18a5e01270ece9a6fe83cb60967218bac4a3bb3ed2'},
     {'Bazel-6.3.1_add-symlinks-in-runfiles.patch': '81db53aa87229557480b6f719c99a0f1af9c69dfec12185451e520b0128c3ae2'},
 ]
 
 builddependencies = [
-    ('binutils', '2.39'),
-    ('Python', '3.10.8'),
+    ('binutils', '2.42'),
+    ('Python', '3.12.3'),
     ('Zip', '3.0'),
 ]
 
 dependencies = [('Java', '11', '', SYSTEM)]
 
 runtest = True
+pretestopts = "sed -i 's/assertEquals/assertEqual/g' examples/py_native/test.py examples/py_native/fail.py && "
 testopts = "-- //examples/cpp:hello-success_test //examples/py/... //examples/py_native:test //examples/shell/..."
 
 moduleclass = 'devel'
+
+# E1: OK
+    # -> in new python there is `assertEqual` not `assertEquals` -> update by sed in pretestopts = OK
+    # <- failed on tests <- log3.txt
+    # FAIL: //examples/py_native:test (see /tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmp7876jg7o-bazel-root/e91c2ecae4343a3587e799b14875d5b6/execroot/io_bazel/bazel-out/k8-fastbuild/testlogs/examples/py_native/test/test.log)
+        # exec ${PAGER:-/usr/bin/less} "$0" || exit 1
+        # Executing tests from //examples/py_native:test
+        # -----------------------------------------------------------------------------
+        # EE
+        # ======================================================================
+        # ERROR: test_fib (__main__.TestGetNumber.test_fib)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 14, in test_fib
+        #     self.assertEquals(Fib(5), 8)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ======================================================================
+        # ERROR: test_ok (__main__.TestGetNumber.test_ok)
+        # ----------------------------------------------------------------------
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/Bazel/6.5.0/GCCcore-13.3.0/tmpls0doccn-bazel-root/e91c2ecae4343a3587e799b14875d5b6/sandbox/linux-sandbox/3/execroot/io_bazel/bazel-out/k8-fastbuild/bin/examples/py_native/test.runfiles/io_bazel/examples/py_native/test.py", line 11, in test_ok
+        #     self.assertEquals(GetNumber(), 42)
+        #     ^^^^^^^^^^^^^^^^^
+        # AttributeError: 'TestGetNumber' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
+
+        # ----------------------------------------------------------------------
+        # Ran 2 tests in 0.004s
+
+        # FAILED (errors=2)
\ No newline at end of file

Updated software TensorFlow-2.17.1-foss-2024a.eb

Diff against TensorFlow-2.15.1-foss-2023a-CUDA-12.1.1.eb

easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a-CUDA-12.1.1.eb

diff --git a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a-CUDA-12.1.1.eb b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
index c9333512ba..0b4e9523cc 100644
--- a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a-CUDA-12.1.1.eb
+++ b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
@@ -1,54 +1,56 @@
 easyblock = 'PythonBundle'
 
 name = 'TensorFlow'
-version = '2.15.1'
-versionsuffix = '-CUDA-%(cudaver)s'
+version = '2.17.1'
 
 homepage = 'https://www.tensorflow.org/'
 description = "An open-source software library for Machine Intelligence"
 
-toolchain = {'name': 'foss', 'version': '2023a'}
+toolchain = {'name': 'foss', 'version': '2024a'}
 toolchainopts = {'pic': True}
 
 builddependencies = [
-    ('Bazel', '6.1.0'),
+    ('hatchling', '1.24.2'),
+    ('Bazel', '6.5.0'),
     # git 2.x required, see also https://github.com/tensorflow/tensorflow/issues/29053
-    ('git', '2.41.0', '-nodocs'),
-    ('pybind11', '2.11.1'),
+    ('git', '2.45.1'),
+    ('pybind11', '2.12.0'),
     ('UnZip', '6.0'),
     # Required to build some of the extensions
-    ('poetry', '1.5.1'),
+    ('poetry', '1.8.3'),
     # Protobuf disabled since 2.13.0 easyconfigs:
     # Compiling with system protobuf don't seem to work, see:
     # https://github.com/tensorflow/tensorflow/issues/61593
     # ('protobuf', '24.0'),
+    ('Cython', '3.0.10'),
 ]
 
 dependencies = [
-    ('CUDA', '12.1.1', '', SYSTEM),
-    ('cuDNN', '8.9.2.26', versionsuffix, SYSTEM),
-    ('NCCL', '2.18.3', versionsuffix),
-    ('Python', '3.11.3'),
-    ('h5py', '3.9.0'),
-    ('cURL', '8.0.1'),
-    ('dill', '0.3.7'),
+    ('Python', '3.12.3'),
+    ('h5py', '3.12.1'),
+    ('cURL', '8.7.1'),
+    ('dill', '0.3.9'),
     ('double-conversion', '3.3.0'),
-    ('flatbuffers', '23.5.26'),
-    ('flatbuffers-python', '23.5.26'),
+    ('flatbuffers', '24.3.25'),
+    ('flatbuffers-python', '24.3.25'),
     ('giflib', '5.2.1'),
-    ('hwloc', '2.9.1'),
-    ('ICU', '73.2'),
+    ('hwloc', '2.10.0'),
+    ('ICU', '75.1'),
     ('JsonCpp', '1.9.5'),
-    ('libjpeg-turbo', '2.1.5.1'),
-    ('ml_dtypes', '0.3.2'),
-    ('NASM', '2.16.01'),
-    ('nsync', '1.26.0'),
-    ('SQLite', '3.42.0'),
+    ('libjpeg-turbo', '3.0.1'),
+    ('ml_dtypes', '0.5.0'),
+    ('NASM', '2.16.03'), # in no dep - maybe delete, x86 assembler
+    ('nsync', '1.29.2'),
+    ('SQLite', '3.45.3'),
     ('patchelf', '0.18.0'),
-    ('libpng', '1.6.39'),
+    ('libpng', '1.6.43'),
     ('snappy', '1.1.10'),
-    ('zlib', '1.2.13'),
-    ('tensorboard', '2.15.1'),
+    ('zlib', '1.3.1'),
+    ('grpcio', '1.70.0'),
+    ('wrapt', '1.16.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
+    ('tensorboard', '2.18.0'),
 ]
 
 # Dependencies created and updated using findPythonDeps, see:
@@ -58,19 +60,18 @@ dependencies = [
 # - portpicker for tests no longer needed (TF@e85860e838)
 # - opt_einsum now comes from ml_dtypes
 exts_list = [
-    ('wrapt', '1.14.1', {
-        'checksums': ['380a85cf89e0e69b7cfbe2ea9f765f004ff419f34194018a6827ac0e3edfed4d'],
+    ('astor', '0.8.1', {
+        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
     }),
-    ('termcolor', '2.3.0', {
-        'checksums': ['b5b08f68937f138fe92f6c089b99f1e2da0ae56c52b78bf7075fd95420fd9a5a'],
+    ('termcolor', '2.5.0', {
+        'checksums': ['998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f'],
     }),
-    ('tensorflow-estimator', '2.15.0', {
-        'source_tmpl': 'tensorflow_estimator-%(version)s-py2.py3-none-any.whl',
-        'checksums': ['aedf21eec7fb2dc91150fc91a1ce12bc44dbb72278a08b58e79ff87c9e28f153'],
+    ('Werkzeug', '3.1.3', {
+        'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
-    ('keras', '2.15.0', {
-        'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
-        'checksums': ['2dcc6d2e30cf9c951064b63c1f4c404b966c59caf09e01f3549138ec8ee0dd1f'],
+    ('keras', '3.9.2', {
+        'checksums': ['322aab6418ee3de1e2bd0871b60a07f0e444e744a7e8cba79af8b42408879ecf'],
     }),
     ('google-pasta', '0.2.0', {
         'modulename': 'pasta',
@@ -79,97 +80,256 @@ exts_list = [
     ('astunparse', '1.6.3', {
         'checksums': ['5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872'],
     }),
-    # Required by tests
-    ('tblib', '3.0.0', {
-        'checksums': ['93622790a0a29e04f0346458face1e144dc4d32f493714c6c3dff82a4adb77e6'],
-    }),
-    ('astor', '0.8.1', {
-        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
+    ('tblib', '2.0.0', {
+        'checksums': ['a6df30f272c08bf8be66e0775fad862005d950a6b8449b94f7c788731d70ecd7'],
     }),
     (name, version, {
         'patches': [
-            'TensorFlow-2.1.0_fix-cuda-build.patch',
-            'TensorFlow-2.4.0_dont-use-var-lock.patch',
             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch',
-            'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch',
-            'TensorFlow-2.15.1_remove-duplicate-gpu-tests.patch',
-            'TensorFlow-2.15.1_remove-libclang-dep.patch',
-            'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch',
-            'TensorFlow-2.15.1_add-default-shell-env.patch',
-            'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch',
             'TensorFlow-2.15.1_fix-flatbuffer-license.patch',
             'TensorFlow-2.15.1_fix-pybind11-build.patch',
-            'TensorFlow-2.15.1_fix-cuda_build_defs.patch',
+            'TensorFlow-2.15.1_add-default-shell-env.patch',
+            'TensorFlow-2.4.0_dont-use-var-lock.patch',
+            'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch',
             'TensorFlow-2.15.1_disable-avx512-extensions.patch',
-            'TensorFlow-2.15.1_disable-tf32-in-fused-matmul-tests.patch'
+            'patch1.1-fix_setup.py.patch',
+            'patch2.1-disable-tf32-in-fused-matmul-tests.patch',
+            'patch3-fix_patchelf.patch',
         ],
+        # 'preinstallopts': "sed -i '59 a\        use_default_shell_env = True,' tensorflow/tools/pip_package/utils/tf_wheel.bzl && ",
         'source_tmpl': 'v%(version)s.tar.gz',
         'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
-        'test_script': 'TensorFlow-2.x_mnist-test.py',
-        'test_tag_filters_cpu': (
-            '-gpu,-tpu,-no_cuda_on_cpu_tap,'
-            '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'
-        ),
-        'test_tag_filters_gpu': (
-            'gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
-            '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'
-        ),
-        'test_targets': [
-            '//tensorflow/core/...',
-            '-//tensorflow/core:example_java_proto',
-            '-//tensorflow/core/example:example_protos_closure',
-            '//tensorflow/cc/...',
-            '//tensorflow/c/...',
-            '//tensorflow/python/...',
-            '-//tensorflow/c/eager:c_api_test_gpu',
-            '-//tensorflow/c/eager:c_api_distributed_test',
-            '-//tensorflow/c/eager:c_api_distributed_test_gpu',
-            '-//tensorflow/c/eager:c_api_cluster_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_test_gpu',
-            '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
-            '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
-        ],
-        'testopts': '--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small ',
-        'testopts_gpu': (
-            '--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small '
-            '--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute '
-        ),
         'with_xla': True,
         'checksums': [
-            {'v2.15.1.tar.gz': 'f36416d831f06fe866e149c7cd752da410a11178b01ff5620e9f265511ed57cf'},
-            {'TensorFlow-2.1.0_fix-cuda-build.patch':
-             '78c20aeaa7784b8ceb46238a81e8c2461137d28e0b576deeba8357d23fbe1f5a'},
-            {'TensorFlow-2.4.0_dont-use-var-lock.patch':
-             'b14f2493fd2edf79abd1c4f2dde6c98a3e7d5cb9c25ab9386df874d5f072d6b5'},
+            {'v2.17.1.tar.gz': '2d3cfb48510f92f3a52fb05b820481c6f066a342a9f5296fe26d72c4ea757700'},
             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
-            {'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch':
-             'd0818206846911d946666ded7d3216c0546e37cee1890a2f48dc1a9d71047cad'},
-            {'TensorFlow-2.15.1_remove-duplicate-gpu-tests.patch':
-             'd8810d5b875de5be8603afd743774ce9dd8c0d4a82314c7fe2f284a080be7498'},
-            {'TensorFlow-2.15.1_remove-libclang-dep.patch':
-             '871b2f0221b7a150ac9f563ffad7187e052a7eedd95c20fb4524987d7edb6f21'},
-            {'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch':
-             'eba7351a4b0696c589b9c507bacb0257ebce8c39fde39ab72d5d6a69deaaec02'},
-            {'TensorFlow-2.15.1_add-default-shell-env.patch':
-             '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
-            {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch':
-             '761059e5f5f5eeeef8aed5517a7685a0eb0a9193d4afe8d45237527681c9c0a3'},
             {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
              '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
             {'TensorFlow-2.15.1_fix-pybind11-build.patch':
              '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
-            {'TensorFlow-2.15.1_fix-cuda_build_defs.patch':
-             '091581a7c4fc2fc7af282cab6661632c29029d2f36eccb6695ffa5783e065f88'},
+            {'TensorFlow-2.15.1_add-default-shell-env.patch':
+             '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+            {'TensorFlow-2.4.0_dont-use-var-lock.patch':
+             'b14f2493fd2edf79abd1c4f2dde6c98a3e7d5cb9c25ab9386df874d5f072d6b5'},
+            {'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch':
+             'd0818206846911d946666ded7d3216c0546e37cee1890a2f48dc1a9d71047cad'},
             {'TensorFlow-2.15.1_disable-avx512-extensions.patch':
              '506ceecff67237eed9cd9e9e114bc1461f35a343f77f83cb3dab710aa701dc0f'},
-            {'TensorFlow-2.15.1_disable-tf32-in-fused-matmul-tests.patch':
-             'f78aa0e8f814a57e8d2e6b24ff095df49e8654aadb797393fa95a9378d0aa662'},
+            {'patch1.1-fix_setup.py.patch': '3725f863e2034ec8ddfde36dcabb729e39081851b5efd72aa1616c2055cb4562'},
+            {'patch2.1-disable-tf32-in-fused-matmul-tests.patch':
+             'eb39f2d9d11c6ff8b1755ae630d8be9e52a4bbf5aaeb3ca125c5dc9c398e2e69'},
+            {'patch3-fix_patchelf.patch': '3fadb6b4b2a0e24c5086e43990bafae34dfbdee4cde42439efc8b06f4283debe'},
         ],
     }),
 ]
 
+# (name, version, {
+#         'patches': [
+#             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch', OK
+#             'TensorFlow-2.15.1_remove-libclang-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_add-default-shell-env.patch', OK
+#             'TensorFlow-2.15.1_fix-flatbuffer-license.patch', OK
+#             'TensorFlow-2.15.1_fix-pybind11-build.patch', OK
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch', -> not working but during bazel build not appling
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch', not working - added here - needs fix-AVX512-eigen-compilation.patch
+#             'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.1.0_fix-cuda-build.patch', -> not working -> this looks fixed in 2.17.1 OK?
+#             'TensorFlow-2.4.0_dont-use-var-lock.patch', OK
+#             'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch', OK
+#             'TensorFlow-2.15.1_remove-duplicate-gpu-tests.patch', -> not working TEST -> seems already fixed in 2.17.1 OK?
+#             'TensorFlow-2.15.1_fix-cuda_build_defs.patch', -> not working -> this looks fixed in 2.17.1 OK?
+                # there are 3 fixes:
+                    # 1) third_party/nccl/system.BUILD.tpl - already fixed OK
+                    # 2) third_party/xla/third_party/nccl/system.BUILD.tpl - not there anymore OK
+                    # 3) third_party/xla/third_party/tsl/third_party/nccl/system.BUILD.tpl - already fixed OK
+#             'TensorFlow-2.15.1_disable-avx512-extensions.patch', OK
+#             'TensorFlow-2.15.1_disable-tf32-in-fused-matmul-tests.patch' -> not working TEST -> created patch2.1-disable-tf32-in-fused-matmul-tests.patch - OK
+#         ],
+#         'source_tmpl': 'v%(version)s.tar.gz',
+#         'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
+#         'test_script': 'TensorFlow-2.x_mnist-test.py',
+#         'test_tag_filters_cpu': '-gpu,-tpu,-no_cuda_on_cpu_tap,-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only',
+#         'test_tag_filters_gpu': ('gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
+#                                  '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'),
+#         'test_targets': [
+#             '//tensorflow/core/...',
+#             '-//tensorflow/core:example_java_proto',
+#             '-//tensorflow/core/example:example_protos_closure',
+#             '//tensorflow/cc/...',
+#             '//tensorflow/c/...',
+#             '//tensorflow/python/...',
+#             '-//tensorflow/c/eager:c_api_test_gpu',
+#             '-//tensorflow/c/eager:c_api_distributed_test',
+#             '-//tensorflow/c/eager:c_api_distributed_test_gpu',
+#             '-//tensorflow/c/eager:c_api_cluster_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_test_gpu',
+#             '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
+#             '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
+#         ],
+#         'testopts': "--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small ",
+#         'testopts_gpu': ('--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small '
+#                          '--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute '),
+#         'with_xla': True,
+#         'checksums': [
+#             {'v2.15.1.tar.gz': 'f36416d831f06fe866e149c7cd752da410a11178b01ff5620e9f265511ed57cf'},
+#             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
+#              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
+#             {'TensorFlow-2.15.1_remove-libclang-dep.patch':
+#              '871b2f0221b7a150ac9f563ffad7187e052a7eedd95c20fb4524987d7edb6f21'},
+#             {'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch':
+#              'eba7351a4b0696c589b9c507bacb0257ebce8c39fde39ab72d5d6a69deaaec02'},
+#             {'TensorFlow-2.15.1_add-default-shell-env.patch':
+#              '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+#             {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
+#              '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
+#             {'TensorFlow-2.15.1_fix-pybind11-build.patch':
+#              '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch':
+#              '761059e5f5f5eeeef8aed5517a7685a0eb0a9193d4afe8d45237527681c9c0a3'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch':
+#              '68adc4bb726a60f2deed2d746d305960505c5cd3abbc018bad1074d95e2a3853'},
+#             {'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch':
+#              'da4a8e63251a7f6aca38a55f8d4ee2955278c320bd20158a78dabd4decb8c9f0'},
+#         ],
+#     }),
+
+#  Taken from tensorboard-2.15.1-gfbf-2023a.eb:
+#  Relax restriction on protobuf dependency as issue was fixed
+#  in https://github.com/protocolbuffers/upb/pull/1514
+#  see also: https://github.com/easybuilders/easybuild-easyconfigs/pull/19671
+# postinstallcmds = [
+#     'sed -i "s/Requires-Dist: protobuf.*/Requires-Dist: protobuf >=3.19.6/g" ' +
+#     '%(installdir)s/lib/python%(pyshortver)s/site-packages/tensorboard-2.15.2.dist-info/METADATA',
+# ]
+
 moduleclass = 'lib'
+
+# E9:
+    # <- install step failed
+    # FAILED: Installation ended unsuccessfully: Failed to isolate built .whl in []:
+    # /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a (took 2 hours 27 mins 12 secs)
+    # == Results of the build can be found in the log file(s)
+    # /tmp/vsc47063/eb-rfl_eas2/easybuild-TensorFlow-2.17.1-20250416.093004.ljuae.log
+# E8: OK
+    # -> add patch3 from FlameFire -> build OK -> log5.txt
+    # -> update easyblock to add PATH to bazel build - L971 -> not help :(
+    # -> seems patchelf is not on the PATH
+    # <- build nearly done - patchelf is in deps
+        # [14,093 / 14,094] [Prepa] Action tensorflow/tools/pip_package/wheel_house
+        # SUBCOMMAND: # //tensorflow/tools/pip_package:wheel [action 'Action tensorflow/tools/pip_package/wheel_house', configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d, execution platform: @local_execution_config_platform//:platform]
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # [14,093 / 14,094] Action tensorflow/tools/pip_package/wheel_house; 1s local
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:265:9: Action tensorflow/tools/pip_package/wheel_house failed: (Exit 1): build_pip_package_py failed: error executing command (from target //tensorflow/tools/pip_package:wheel)
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 343, in <module>
+        #     prepare_wheel_srcs(args.headers, args.srcs, args.xla_aot,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 197, in prepare_wheel_srcs
+        #     patch_so(srcs_dir)
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 242, in patch_so
+        #     rpath = subprocess.check_output(
+        #             ^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 466, in check_output
+        #     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 548, in run
+        #     with Popen(*popenargs, **kwargs) as process:
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1026, in __init__
+        #     self._execute_child(args, executable, preexec_fn, close_fds,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1950, in _execute_child
+        #     raise child_exception_type(errno_num, err_msg, err_filename)
+        # FileNotFoundError: [Errno 2] No such file or directory: 'patchelf'
+        # Target //tensorflow/tools/pip_package:wheel failed to build
+        # INFO: Elapsed time: 8276.555s, Critical Path: 263.76s
+        # INFO: 14094 processes: 993 internal, 13101 local.
+# E7: OK
+    # -> posibly fixed in TensorFlow-2.15.1_add-default-shell-env.patch
+    # -> absl-py work ok...
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/python/util/BUILD:756:18: Extracting tensorflow APIs for //tensorflow/python/util:tf_inspect to bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json. failed: (Exit 1): main failed: error executing command (from target //tensorflow/python/util:tf_inspect)
+    #   (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+    #   exec env - \
+    #   bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main --output bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json --decorator tensorflow.python.util.tf_export.tf_export --api_name tensorflow tensorflow/python/util/tf_inspect.py)
+    # # Configuration: 68a9a1eb4733c168b1855c6c0bc0145ab4a1941b21e6e10d0591be21ddaf581f
+    # # Execution platform: @local_execution_config_platform//:platform
+    # Traceback (most recent call last):
+    #   File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main.runfiles/org_tensorflow/tensorflow/python/tools/api/generator2/extractor/main.py", line 17, in <module>
+    #     from absl import app
+    # ModuleNotFoundError: No module named 'absl'
+    # Target //tensorflow/tools/pip_package:wheel failed to build
+# E6: OK
+    # -> add patch 'TensorFlow-2.15.1_fix-flatbuffer-license.patch' + 'TensorFlow-2.15.1_fix-pybind11-build.patch'
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:83:10: no such target '@flatbuffers//:LICENSE': target 'LICENSE' not declared in package '' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/flatbuffers/BUILD.bazel (Tip: use `query "@flatbuffers//:*"` to see all the targets in that package) and referenced by '//tensorflow/tools/pip_package:licenses'
+# E5: OK
+    # -> update easyblosk to use need wheel build command: https://github.com/tensorflow/tensorflow/issues/63298#issuecomment-1986141742 -> OK
+    # same issue here: https://github.com/tensorflow/tensorflow/issues/63302
+    # -> update easyblock L972 to `bazel-bin/tensorflow/tools/pip_package/build_pip_package_py` -> NO
+        # usage: build_pip_package.py [-h] --output-name OUTPUT_NAME --project-name PROJECT_NAME [--headers HEADERS] [--srcs SRCS]
+        #                     [--xla_aot XLA_AOT] [--version VERSION] [--collab COLLAB]
+        # build_pip_package.py: error: the following arguments are required: --output-name, --project-name
+    # == 2025-04-09 11:56:30,684 run.py:598 INFO Output of 'bazel-bin/tensorflow/tools/pip_package/build_pip_package ...' shell command (stdout + stderr):
+    # /usr/bin/bash: line 1: bazel-bin/tensorflow/tools/pip_package/build_pip_package: No such file or directory
+# E4: OK
+    # -> seems as a bazel version problem - in .bazelversion is 6.5.0 but I have 7.4.1 -> prepare bazel 6.5.0
+    # <- log2.txt <- bazel cmd 
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: in py_runtime rule @@local_config_python//:py2_runtime: 
+        # Traceback (most recent call last):
+        #     File "/virtual_builtins_bzl/common/python/py_runtime_rule.bzl", line 40, column 17, in _py_runtime_impl
+        # Error in fail: interpreter_path must be an absolute path
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: Analysis of target '@@local_config_python//:py2_runtime' failed
+        # ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package_py' failed; build aborted: Analysis failed
+# E3: OK
+    # -> https://github.com/tensorflow/tensorflow/blob/3c92ac03cab816044f7b18a86eb86aa01a294d95/tensorflow/tools/pip_package/BUILD#L235
+    #   was changed -> update easyblock L965 to: + ['//tensorflow/tools/pip_package:build_pip_package_py'] -> OK
+    # <- after bazel cmd <- log1.txt
+        # ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+        # ERROR: no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+# E2: OK
+    # import astor +  No module named 'cython'
+# E1: OK
+    # fixed by termcolor 2.5.0
+    # -> try v2.19.0...
+    # -> problem with python version?
+    # == 2025-04-08 12:58:22,825 run.py:598 INFO Output of '/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/bin/python ...' shell command (stdout + stderr):
+    # Processing /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/termcolor/termcolor-3.0.1
+    #   Preparing metadata (pyproject.toml): started
+    #   Preparing metadata (pyproject.toml): finished with status 'error'
+    #   error: subprocess-exited-with-error
+    #   × Preparing metadata (pyproject.toml) did not run successfully.
+    #   │ exit code: 1
+    #   ╰─> [21 lines of output]
+    #       Traceback (most recent call last):
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
+    #           main()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
+    #           json_out['return_val'] = hook(**hook_input['kwargs'])
+    #                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
+    #           whl_basename = backend.build_wheel(metadata_directory, config_settings)
+    #                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel
+    #           return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
+    #                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
+    #           self.metadata.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 266, in validate_fields
+    #           self.core.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 1376, in validate_fields
+    #           getattr(self, attribute)
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 750, in license_files
+    #           raise TypeError(message)
+    #       TypeError: Field `project.license-files` must be a table
+    #       [end of output]
\ No newline at end of file
Diff against TensorFlow-2.15.1-foss-2023a.eb

easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a.eb

diff --git a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a.eb b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
index 41a35c0c90..0b4e9523cc 100644
--- a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1-foss-2023a.eb
+++ b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
@@ -1,50 +1,56 @@
 easyblock = 'PythonBundle'
 
 name = 'TensorFlow'
-version = '2.15.1'
+version = '2.17.1'
 
 homepage = 'https://www.tensorflow.org/'
 description = "An open-source software library for Machine Intelligence"
 
-toolchain = {'name': 'foss', 'version': '2023a'}
+toolchain = {'name': 'foss', 'version': '2024a'}
 toolchainopts = {'pic': True}
 
 builddependencies = [
-    ('Bazel', '6.1.0'),
+    ('hatchling', '1.24.2'),
+    ('Bazel', '6.5.0'),
     # git 2.x required, see also https://github.com/tensorflow/tensorflow/issues/29053
-    ('git', '2.41.0', '-nodocs'),
-    ('pybind11', '2.11.1'),
+    ('git', '2.45.1'),
+    ('pybind11', '2.12.0'),
     ('UnZip', '6.0'),
     # Required to build some of the extensions
-    ('poetry', '1.5.1'),
+    ('poetry', '1.8.3'),
     # Protobuf disabled since 2.13.0 easyconfigs:
     # Compiling with system protobuf don't seem to work, see:
     # https://github.com/tensorflow/tensorflow/issues/61593
     # ('protobuf', '24.0'),
+    ('Cython', '3.0.10'),
 ]
 
 dependencies = [
-    ('Python', '3.11.3'),
-    ('h5py', '3.9.0'),
-    ('cURL', '8.0.1'),
-    ('dill', '0.3.7'),
+    ('Python', '3.12.3'),
+    ('h5py', '3.12.1'),
+    ('cURL', '8.7.1'),
+    ('dill', '0.3.9'),
     ('double-conversion', '3.3.0'),
-    ('flatbuffers', '23.5.26'),
-    ('flatbuffers-python', '23.5.26'),
+    ('flatbuffers', '24.3.25'),
+    ('flatbuffers-python', '24.3.25'),
     ('giflib', '5.2.1'),
-    ('hwloc', '2.9.1'),
-    ('ICU', '73.2'),
+    ('hwloc', '2.10.0'),
+    ('ICU', '75.1'),
     ('JsonCpp', '1.9.5'),
-    ('libjpeg-turbo', '2.1.5.1'),
-    ('ml_dtypes', '0.3.2'),
-    ('NASM', '2.16.01'),
-    ('nsync', '1.26.0'),
-    ('SQLite', '3.42.0'),
+    ('libjpeg-turbo', '3.0.1'),
+    ('ml_dtypes', '0.5.0'),
+    ('NASM', '2.16.03'), # in no dep - maybe delete, x86 assembler
+    ('nsync', '1.29.2'),
+    ('SQLite', '3.45.3'),
     ('patchelf', '0.18.0'),
-    ('libpng', '1.6.39'),
+    ('libpng', '1.6.43'),
     ('snappy', '1.1.10'),
-    ('zlib', '1.2.13'),
-    ('tensorboard', '2.15.1'),
+    ('zlib', '1.3.1'),
+    ('grpcio', '1.70.0'),
+    ('wrapt', '1.16.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
+    ('tensorboard', '2.18.0'),
 ]
 
 # Dependencies created and updated using findPythonDeps, see:
@@ -54,19 +60,18 @@ dependencies = [
 # - portpicker for tests no longer needed (TF@e85860e838)
 # - opt_einsum now comes from ml_dtypes
 exts_list = [
-    ('wrapt', '1.14.1', {
-        'checksums': ['380a85cf89e0e69b7cfbe2ea9f765f004ff419f34194018a6827ac0e3edfed4d'],
+    ('astor', '0.8.1', {
+        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
     }),
-    ('termcolor', '2.3.0', {
-        'checksums': ['b5b08f68937f138fe92f6c089b99f1e2da0ae56c52b78bf7075fd95420fd9a5a'],
+    ('termcolor', '2.5.0', {
+        'checksums': ['998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f'],
     }),
-    ('tensorflow-estimator', '2.15.0', {
-        'source_tmpl': 'tensorflow_estimator-%(version)s-py2.py3-none-any.whl',
-        'checksums': ['aedf21eec7fb2dc91150fc91a1ce12bc44dbb72278a08b58e79ff87c9e28f153'],
+    ('Werkzeug', '3.1.3', {
+        'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
-    ('keras', '2.15.0', {
-        'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
-        'checksums': ['2dcc6d2e30cf9c951064b63c1f4c404b966c59caf09e01f3549138ec8ee0dd1f'],
+    ('keras', '3.9.2', {
+        'checksums': ['322aab6418ee3de1e2bd0871b60a07f0e444e744a7e8cba79af8b42408879ecf'],
     }),
     ('google-pasta', '0.2.0', {
         'modulename': 'pasta',
@@ -75,82 +80,256 @@ exts_list = [
     ('astunparse', '1.6.3', {
         'checksums': ['5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872'],
     }),
-    # Required by tests
-    ('tblib', '3.0.0', {
-        'checksums': ['93622790a0a29e04f0346458face1e144dc4d32f493714c6c3dff82a4adb77e6'],
-    }),
-    ('astor', '0.8.1', {
-        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
+    ('tblib', '2.0.0', {
+        'checksums': ['a6df30f272c08bf8be66e0775fad862005d950a6b8449b94f7c788731d70ecd7'],
     }),
     (name, version, {
         'patches': [
             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch',
-            'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch',
-            'TensorFlow-2.15.1_remove-libclang-dep.patch',
-            'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch',
-            'TensorFlow-2.15.1_add-default-shell-env.patch',
-            'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch',
             'TensorFlow-2.15.1_fix-flatbuffer-license.patch',
             'TensorFlow-2.15.1_fix-pybind11-build.patch',
+            'TensorFlow-2.15.1_add-default-shell-env.patch',
+            'TensorFlow-2.4.0_dont-use-var-lock.patch',
+            'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch',
             'TensorFlow-2.15.1_disable-avx512-extensions.patch',
+            'patch1.1-fix_setup.py.patch',
+            'patch2.1-disable-tf32-in-fused-matmul-tests.patch',
+            'patch3-fix_patchelf.patch',
         ],
+        # 'preinstallopts': "sed -i '59 a\        use_default_shell_env = True,' tensorflow/tools/pip_package/utils/tf_wheel.bzl && ",
         'source_tmpl': 'v%(version)s.tar.gz',
         'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
-        'test_script': 'TensorFlow-2.x_mnist-test.py',
-        'test_tag_filters_cpu': (
-            '-gpu,-tpu,-no_cuda_on_cpu_tap,'
-            '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'
-        ),
-        'test_tag_filters_gpu': (
-            'gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
-            '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'
-        ),
-        'test_targets': [
-            '//tensorflow/core/...',
-            '-//tensorflow/core:example_java_proto',
-            '-//tensorflow/core/example:example_protos_closure',
-            '//tensorflow/cc/...',
-            '//tensorflow/c/...',
-            '//tensorflow/python/...',
-            '-//tensorflow/c/eager:c_api_test_gpu',
-            '-//tensorflow/c/eager:c_api_distributed_test',
-            '-//tensorflow/c/eager:c_api_distributed_test_gpu',
-            '-//tensorflow/c/eager:c_api_cluster_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_test_gpu',
-            '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
-            '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
-        ],
-        'testopts': '--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small ',
-        'testopts_gpu': (
-            '--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small '
-            '--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute '
-        ),
         'with_xla': True,
         'checksums': [
-            {'v2.15.1.tar.gz': 'f36416d831f06fe866e149c7cd752da410a11178b01ff5620e9f265511ed57cf'},
+            {'v2.17.1.tar.gz': '2d3cfb48510f92f3a52fb05b820481c6f066a342a9f5296fe26d72c4ea757700'},
             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
-            {'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch':
-             'd0818206846911d946666ded7d3216c0546e37cee1890a2f48dc1a9d71047cad'},
-            {'TensorFlow-2.15.1_remove-libclang-dep.patch':
-             '871b2f0221b7a150ac9f563ffad7187e052a7eedd95c20fb4524987d7edb6f21'},
-            {'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch':
-             'eba7351a4b0696c589b9c507bacb0257ebce8c39fde39ab72d5d6a69deaaec02'},
-            {'TensorFlow-2.15.1_add-default-shell-env.patch':
-             '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
-            {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch':
-             '761059e5f5f5eeeef8aed5517a7685a0eb0a9193d4afe8d45237527681c9c0a3'},
             {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
              '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
             {'TensorFlow-2.15.1_fix-pybind11-build.patch':
              '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
+            {'TensorFlow-2.15.1_add-default-shell-env.patch':
+             '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+            {'TensorFlow-2.4.0_dont-use-var-lock.patch':
+             'b14f2493fd2edf79abd1c4f2dde6c98a3e7d5cb9c25ab9386df874d5f072d6b5'},
+            {'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch':
+             'd0818206846911d946666ded7d3216c0546e37cee1890a2f48dc1a9d71047cad'},
             {'TensorFlow-2.15.1_disable-avx512-extensions.patch':
              '506ceecff67237eed9cd9e9e114bc1461f35a343f77f83cb3dab710aa701dc0f'},
+            {'patch1.1-fix_setup.py.patch': '3725f863e2034ec8ddfde36dcabb729e39081851b5efd72aa1616c2055cb4562'},
+            {'patch2.1-disable-tf32-in-fused-matmul-tests.patch':
+             'eb39f2d9d11c6ff8b1755ae630d8be9e52a4bbf5aaeb3ca125c5dc9c398e2e69'},
+            {'patch3-fix_patchelf.patch': '3fadb6b4b2a0e24c5086e43990bafae34dfbdee4cde42439efc8b06f4283debe'},
         ],
     }),
 ]
 
+# (name, version, {
+#         'patches': [
+#             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch', OK
+#             'TensorFlow-2.15.1_remove-libclang-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_add-default-shell-env.patch', OK
+#             'TensorFlow-2.15.1_fix-flatbuffer-license.patch', OK
+#             'TensorFlow-2.15.1_fix-pybind11-build.patch', OK
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch', -> not working but during bazel build not appling
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch', not working - added here - needs fix-AVX512-eigen-compilation.patch
+#             'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.1.0_fix-cuda-build.patch', -> not working -> this looks fixed in 2.17.1 OK?
+#             'TensorFlow-2.4.0_dont-use-var-lock.patch', OK
+#             'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch', OK
+#             'TensorFlow-2.15.1_remove-duplicate-gpu-tests.patch', -> not working TEST -> seems already fixed in 2.17.1 OK?
+#             'TensorFlow-2.15.1_fix-cuda_build_defs.patch', -> not working -> this looks fixed in 2.17.1 OK?
+                # there are 3 fixes:
+                    # 1) third_party/nccl/system.BUILD.tpl - already fixed OK
+                    # 2) third_party/xla/third_party/nccl/system.BUILD.tpl - not there anymore OK
+                    # 3) third_party/xla/third_party/tsl/third_party/nccl/system.BUILD.tpl - already fixed OK
+#             'TensorFlow-2.15.1_disable-avx512-extensions.patch', OK
+#             'TensorFlow-2.15.1_disable-tf32-in-fused-matmul-tests.patch' -> not working TEST -> created patch2.1-disable-tf32-in-fused-matmul-tests.patch - OK
+#         ],
+#         'source_tmpl': 'v%(version)s.tar.gz',
+#         'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
+#         'test_script': 'TensorFlow-2.x_mnist-test.py',
+#         'test_tag_filters_cpu': '-gpu,-tpu,-no_cuda_on_cpu_tap,-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only',
+#         'test_tag_filters_gpu': ('gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
+#                                  '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'),
+#         'test_targets': [
+#             '//tensorflow/core/...',
+#             '-//tensorflow/core:example_java_proto',
+#             '-//tensorflow/core/example:example_protos_closure',
+#             '//tensorflow/cc/...',
+#             '//tensorflow/c/...',
+#             '//tensorflow/python/...',
+#             '-//tensorflow/c/eager:c_api_test_gpu',
+#             '-//tensorflow/c/eager:c_api_distributed_test',
+#             '-//tensorflow/c/eager:c_api_distributed_test_gpu',
+#             '-//tensorflow/c/eager:c_api_cluster_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_test_gpu',
+#             '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
+#             '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
+#         ],
+#         'testopts': "--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small ",
+#         'testopts_gpu': ('--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small '
+#                          '--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute '),
+#         'with_xla': True,
+#         'checksums': [
+#             {'v2.15.1.tar.gz': 'f36416d831f06fe866e149c7cd752da410a11178b01ff5620e9f265511ed57cf'},
+#             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
+#              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
+#             {'TensorFlow-2.15.1_remove-libclang-dep.patch':
+#              '871b2f0221b7a150ac9f563ffad7187e052a7eedd95c20fb4524987d7edb6f21'},
+#             {'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch':
+#              'eba7351a4b0696c589b9c507bacb0257ebce8c39fde39ab72d5d6a69deaaec02'},
+#             {'TensorFlow-2.15.1_add-default-shell-env.patch':
+#              '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+#             {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
+#              '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
+#             {'TensorFlow-2.15.1_fix-pybind11-build.patch':
+#              '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch':
+#              '761059e5f5f5eeeef8aed5517a7685a0eb0a9193d4afe8d45237527681c9c0a3'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch':
+#              '68adc4bb726a60f2deed2d746d305960505c5cd3abbc018bad1074d95e2a3853'},
+#             {'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch':
+#              'da4a8e63251a7f6aca38a55f8d4ee2955278c320bd20158a78dabd4decb8c9f0'},
+#         ],
+#     }),
+
+#  Taken from tensorboard-2.15.1-gfbf-2023a.eb:
+#  Relax restriction on protobuf dependency as issue was fixed
+#  in https://github.com/protocolbuffers/upb/pull/1514
+#  see also: https://github.com/easybuilders/easybuild-easyconfigs/pull/19671
+# postinstallcmds = [
+#     'sed -i "s/Requires-Dist: protobuf.*/Requires-Dist: protobuf >=3.19.6/g" ' +
+#     '%(installdir)s/lib/python%(pyshortver)s/site-packages/tensorboard-2.15.2.dist-info/METADATA',
+# ]
+
 moduleclass = 'lib'
+
+# E9:
+    # <- install step failed
+    # FAILED: Installation ended unsuccessfully: Failed to isolate built .whl in []:
+    # /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a (took 2 hours 27 mins 12 secs)
+    # == Results of the build can be found in the log file(s)
+    # /tmp/vsc47063/eb-rfl_eas2/easybuild-TensorFlow-2.17.1-20250416.093004.ljuae.log
+# E8: OK
+    # -> add patch3 from FlameFire -> build OK -> log5.txt
+    # -> update easyblock to add PATH to bazel build - L971 -> not help :(
+    # -> seems patchelf is not on the PATH
+    # <- build nearly done - patchelf is in deps
+        # [14,093 / 14,094] [Prepa] Action tensorflow/tools/pip_package/wheel_house
+        # SUBCOMMAND: # //tensorflow/tools/pip_package:wheel [action 'Action tensorflow/tools/pip_package/wheel_house', configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d, execution platform: @local_execution_config_platform//:platform]
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # [14,093 / 14,094] Action tensorflow/tools/pip_package/wheel_house; 1s local
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:265:9: Action tensorflow/tools/pip_package/wheel_house failed: (Exit 1): build_pip_package_py failed: error executing command (from target //tensorflow/tools/pip_package:wheel)
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 343, in <module>
+        #     prepare_wheel_srcs(args.headers, args.srcs, args.xla_aot,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 197, in prepare_wheel_srcs
+        #     patch_so(srcs_dir)
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 242, in patch_so
+        #     rpath = subprocess.check_output(
+        #             ^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 466, in check_output
+        #     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 548, in run
+        #     with Popen(*popenargs, **kwargs) as process:
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1026, in __init__
+        #     self._execute_child(args, executable, preexec_fn, close_fds,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1950, in _execute_child
+        #     raise child_exception_type(errno_num, err_msg, err_filename)
+        # FileNotFoundError: [Errno 2] No such file or directory: 'patchelf'
+        # Target //tensorflow/tools/pip_package:wheel failed to build
+        # INFO: Elapsed time: 8276.555s, Critical Path: 263.76s
+        # INFO: 14094 processes: 993 internal, 13101 local.
+# E7: OK
+    # -> posibly fixed in TensorFlow-2.15.1_add-default-shell-env.patch
+    # -> absl-py work ok...
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/python/util/BUILD:756:18: Extracting tensorflow APIs for //tensorflow/python/util:tf_inspect to bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json. failed: (Exit 1): main failed: error executing command (from target //tensorflow/python/util:tf_inspect)
+    #   (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+    #   exec env - \
+    #   bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main --output bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json --decorator tensorflow.python.util.tf_export.tf_export --api_name tensorflow tensorflow/python/util/tf_inspect.py)
+    # # Configuration: 68a9a1eb4733c168b1855c6c0bc0145ab4a1941b21e6e10d0591be21ddaf581f
+    # # Execution platform: @local_execution_config_platform//:platform
+    # Traceback (most recent call last):
+    #   File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main.runfiles/org_tensorflow/tensorflow/python/tools/api/generator2/extractor/main.py", line 17, in <module>
+    #     from absl import app
+    # ModuleNotFoundError: No module named 'absl'
+    # Target //tensorflow/tools/pip_package:wheel failed to build
+# E6: OK
+    # -> add patch 'TensorFlow-2.15.1_fix-flatbuffer-license.patch' + 'TensorFlow-2.15.1_fix-pybind11-build.patch'
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:83:10: no such target '@flatbuffers//:LICENSE': target 'LICENSE' not declared in package '' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/flatbuffers/BUILD.bazel (Tip: use `query "@flatbuffers//:*"` to see all the targets in that package) and referenced by '//tensorflow/tools/pip_package:licenses'
+# E5: OK
+    # -> update easyblosk to use need wheel build command: https://github.com/tensorflow/tensorflow/issues/63298#issuecomment-1986141742 -> OK
+    # same issue here: https://github.com/tensorflow/tensorflow/issues/63302
+    # -> update easyblock L972 to `bazel-bin/tensorflow/tools/pip_package/build_pip_package_py` -> NO
+        # usage: build_pip_package.py [-h] --output-name OUTPUT_NAME --project-name PROJECT_NAME [--headers HEADERS] [--srcs SRCS]
+        #                     [--xla_aot XLA_AOT] [--version VERSION] [--collab COLLAB]
+        # build_pip_package.py: error: the following arguments are required: --output-name, --project-name
+    # == 2025-04-09 11:56:30,684 run.py:598 INFO Output of 'bazel-bin/tensorflow/tools/pip_package/build_pip_package ...' shell command (stdout + stderr):
+    # /usr/bin/bash: line 1: bazel-bin/tensorflow/tools/pip_package/build_pip_package: No such file or directory
+# E4: OK
+    # -> seems as a bazel version problem - in .bazelversion is 6.5.0 but I have 7.4.1 -> prepare bazel 6.5.0
+    # <- log2.txt <- bazel cmd 
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: in py_runtime rule @@local_config_python//:py2_runtime: 
+        # Traceback (most recent call last):
+        #     File "/virtual_builtins_bzl/common/python/py_runtime_rule.bzl", line 40, column 17, in _py_runtime_impl
+        # Error in fail: interpreter_path must be an absolute path
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: Analysis of target '@@local_config_python//:py2_runtime' failed
+        # ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package_py' failed; build aborted: Analysis failed
+# E3: OK
+    # -> https://github.com/tensorflow/tensorflow/blob/3c92ac03cab816044f7b18a86eb86aa01a294d95/tensorflow/tools/pip_package/BUILD#L235
+    #   was changed -> update easyblock L965 to: + ['//tensorflow/tools/pip_package:build_pip_package_py'] -> OK
+    # <- after bazel cmd <- log1.txt
+        # ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+        # ERROR: no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+# E2: OK
+    # import astor +  No module named 'cython'
+# E1: OK
+    # fixed by termcolor 2.5.0
+    # -> try v2.19.0...
+    # -> problem with python version?
+    # == 2025-04-08 12:58:22,825 run.py:598 INFO Output of '/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/bin/python ...' shell command (stdout + stderr):
+    # Processing /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/termcolor/termcolor-3.0.1
+    #   Preparing metadata (pyproject.toml): started
+    #   Preparing metadata (pyproject.toml): finished with status 'error'
+    #   error: subprocess-exited-with-error
+    #   × Preparing metadata (pyproject.toml) did not run successfully.
+    #   │ exit code: 1
+    #   ╰─> [21 lines of output]
+    #       Traceback (most recent call last):
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
+    #           main()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
+    #           json_out['return_val'] = hook(**hook_input['kwargs'])
+    #                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
+    #           whl_basename = backend.build_wheel(metadata_directory, config_settings)
+    #                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel
+    #           return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
+    #                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
+    #           self.metadata.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 266, in validate_fields
+    #           self.core.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 1376, in validate_fields
+    #           getattr(self, attribute)
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 750, in license_files
+    #           raise TypeError(message)
+    #       TypeError: Field `project.license-files` must be a table
+    #       [end of output]
\ No newline at end of file
Diff against TensorFlow-2.13.0-foss-2023a.eb

easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.13.0-foss-2023a.eb

diff --git a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.13.0-foss-2023a.eb b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
index 230b6edc2c..0b4e9523cc 100644
--- a/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.13.0-foss-2023a.eb
+++ b/easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.17.1-foss-2024a.eb
@@ -1,135 +1,77 @@
 easyblock = 'PythonBundle'
 
 name = 'TensorFlow'
-version = '2.13.0'
+version = '2.17.1'
 
 homepage = 'https://www.tensorflow.org/'
 description = "An open-source software library for Machine Intelligence"
 
-toolchain = {'name': 'foss', 'version': '2023a'}
+toolchain = {'name': 'foss', 'version': '2024a'}
 toolchainopts = {'pic': True}
 
 builddependencies = [
-    ('Bazel', '6.3.1'),
+    ('hatchling', '1.24.2'),
+    ('Bazel', '6.5.0'),
     # git 2.x required, see also https://github.com/tensorflow/tensorflow/issues/29053
-    ('git', '2.41.0', '-nodocs'),
-    ('pybind11', '2.11.1'),
+    ('git', '2.45.1'),
+    ('pybind11', '2.12.0'),
     ('UnZip', '6.0'),
     # Required to build some of the extensions
-    ('poetry', '1.5.1'),
-    # System protobuf doesn't seem to work: https://github.com/tensorflow/tensorflow/issues/61593
-    # So don't add it here
+    ('poetry', '1.8.3'),
+    # Protobuf disabled since 2.13.0 easyconfigs:
+    # Compiling with system protobuf don't seem to work, see:
+    # https://github.com/tensorflow/tensorflow/issues/61593
+    # ('protobuf', '24.0'),
+    ('Cython', '3.0.10'),
 ]
+
 dependencies = [
-    ('Python', '3.11.3'),
-    ('h5py', '3.9.0'),
-    ('cURL', '8.0.1'),
-    ('dill', '0.3.7'),
+    ('Python', '3.12.3'),
+    ('h5py', '3.12.1'),
+    ('cURL', '8.7.1'),
+    ('dill', '0.3.9'),
     ('double-conversion', '3.3.0'),
-    ('flatbuffers', '23.5.26'),
-    ('flatbuffers-python', '23.5.26'),
+    ('flatbuffers', '24.3.25'),
+    ('flatbuffers-python', '24.3.25'),
     ('giflib', '5.2.1'),
-    ('hwloc', '2.9.1'),
-    ('ICU', '73.2'),
+    ('hwloc', '2.10.0'),
+    ('ICU', '75.1'),
     ('JsonCpp', '1.9.5'),
-    ('libjpeg-turbo', '2.1.5.1'),
-    ('NASM', '2.16.01'),
-    ('nsync', '1.26.0'),
-    ('SQLite', '3.42.0'),
+    ('libjpeg-turbo', '3.0.1'),
+    ('ml_dtypes', '0.5.0'),
+    ('NASM', '2.16.03'), # in no dep - maybe delete, x86 assembler
+    ('nsync', '1.29.2'),
+    ('SQLite', '3.45.3'),
     ('patchelf', '0.18.0'),
-    ('protobuf-python', '4.24.0'),
-    ('libpng', '1.6.39'),
+    ('libpng', '1.6.43'),
     ('snappy', '1.1.10'),
-    ('zlib', '1.2.13'),
-    # Dependencies of grpcio
-    ('OpenSSL', '1.1', '', SYSTEM),
-    ('RE2', '2023-08-01'),
+    ('zlib', '1.3.1'),
+    ('grpcio', '1.70.0'),
+    ('wrapt', '1.16.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
+    ('tensorboard', '2.18.0'),
 ]
 
-# Dependencies created and updated using findPythonDeps.sh:
-# https://gist.github.com/Flamefire/49426e502cd8983757bd01a08a10ae0d
+# Dependencies created and updated using findPythonDeps, see:
+# https://docs.easybuild.io/api/easybuild/scripts/findPythonDeps
+# Notable changes since 2.13.0-foss-2023a
+# - tensoboard-wit deprecated as of tensorboard 2.13.0 (tensorboard@33abcb54d7)
+# - portpicker for tests no longer needed (TF@e85860e838)
+# - opt_einsum now comes from ml_dtypes
 exts_list = [
-    ('wrapt', '1.15.0', {
-        'checksums': ['d06730c6aed78cee4126234cf2d071e01b44b915e725a6cb439a879ec9754a3a'],
-    }),
-    ('termcolor', '2.3.0', {
-        'source_tmpl': SOURCE_PY3_WHL,
-        'checksums': ['3afb05607b89aed0ffe25202399ee0867ad4d3cb4180d98aaf8eefa6a5f7d475'],
-    }),
-    ('tensorflow-estimator', version, {
-        'source_tmpl': 'tensorflow_estimator-%(version)s-py2.py3-none-any.whl',
-        'checksums': ['6f868284eaa654ae3aa7cacdbef2175d0909df9fcf11374f5166f8bf475952aa'],
-    }),
-    ('Werkzeug', '2.3.7', {
-        'source_tmpl': SOURCELOWER_TAR_GZ,
-        'checksums': ['2b8c0e447b4b9dbcc85dd97b6eeb4dcbaf6c8b6c3be0bd654e25553e0a2157d8'],
-    }),
-    ('tensorboard-plugin-wit', '1.8.1', {
-        'source_tmpl': 'tensorboard_plugin_wit-%(version)s-py3-none-any.whl',
-        'checksums': ['ff26bdd583d155aa951ee3b152b3d0cffae8005dc697f72b44a8e8c2a77a8cbe'],
-    }),
-    ('tensorboard-data-server', '0.7.1', {
-        'source_tmpl': 'tensorboard_data_server-%(version)s-py3-none-any.whl',
-        'checksums': ['9938bd39f5041797b33921066fba0eab03a0dd10d1887a05e62ae58841ad4c3f'],
-    }),
-    ('Markdown', '3.4.4', {
-        'checksums': ['225c6123522495d4119a90b3a3ba31a1e87a70369e03f14799ea9c0d7183a3d6'],
-    }),
-    ('grpcio', '1.57.0', {
-        'modulename': 'grpc',
-        # patch hardcoded /usr paths to prefix them with alternate sysroot path (if defined)
-        'preinstallopts': "sed -i 's@/usr@%(sysroot)s/usr@g' setup.py && " +
-                          "GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=%(parallel)s " +
-                          # Required to avoid building with non-default C++ standard but keep other flags,
-                          # see https://github.com/grpc/grpc/issues/34256
-                          "GRPC_PYTHON_CFLAGS='-fvisibility=hidden -fno-wrapv -fno-exceptions' " +
-                          " ".join(["GRPC_PYTHON_BUILD_SYSTEM_%s=True" % i for i in
-                                    (
-                                        'OPENSSL',
-                                        'ZLIB',
-                                        'RE2',
-                                        # 'ABSL',
-                                    )]),
-        'checksums': ['4b089f7ad1eb00a104078bab8015b0ed0ebcb3b589e527ab009c53893fd4e613'],
-    }),
-    ('oauthlib', '3.2.2', {
-        'checksums': ['9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918'],
-    }),
-    ('requests-oauthlib', '1.3.1', {
-        'checksums': ['75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a'],
-    }),
-    ('rsa', '4.9', {
-        'checksums': ['e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21'],
-    }),
-    ('pyasn1-modules', '0.3.0', {
-        'source_tmpl': 'pyasn1_modules-%(version)s.tar.gz',
-        'checksums': ['5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c'],
-    }),
-    ('cachetools', '5.3.1', {
-        'checksums': ['dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b'],
-    }),
-    ('google-auth', '2.22.0', {
-        'modulename': 'google.auth',
-        'checksums': ['164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce'],
-    }),
-    ('google-auth-oauthlib', '1.0.0', {
-        'checksums': ['e375064964820b47221a7e1b7ee1fd77051b6323c3f9e3e19785f78ab67ecfc5'],
-    }),
-    ('absl-py', '1.4.0', {
-        'modulename': 'absl',
-        'checksums': ['d2c244d01048ba476e7c080bd2c6df5e141d211de80223460d5b3b8a2a58433d'],
+    ('astor', '0.8.1', {
+        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
     }),
-    ('tensorboard', version, {
-        'source_tmpl': SOURCE_PY3_WHL,
-        'checksums': ['ab69961ebddbddc83f5fa2ff9233572bdad5b883778c35e4fe94bf1798bd8481'],
+    ('termcolor', '2.5.0', {
+        'checksums': ['998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f'],
     }),
-    ('opt-einsum', '3.3.0', {
-        'source_tmpl': 'opt_einsum-%(version)s.tar.gz',
-        'checksums': ['59f6475f77bbc37dcf7cd748519c0ec60722e91e63ca114e68821c0c54a46549'],
+    ('Werkzeug', '3.1.3', {
+        'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
-    ('keras', '2.13.1', {
-        'source_tmpl': SOURCE_PY3_WHL,
-        'checksums': ['5ce5f706f779fa7330e63632f327b75ce38144a120376b2ae1917c00fa6136af'],
+    ('keras', '3.9.2', {
+        'checksums': ['322aab6418ee3de1e2bd0871b60a07f0e444e744a7e8cba79af8b42408879ecf'],
     }),
     ('google-pasta', '0.2.0', {
         'modulename': 'pasta',
@@ -138,105 +80,256 @@ exts_list = [
     ('astunparse', '1.6.3', {
         'checksums': ['5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872'],
     }),
-    # Required by tests
-    ('portpicker', '1.5.2', {
-        'checksums': ['c55683ad725f5c00a41bc7db0225223e8be024b1fa564d039ed3390e4fd48fb3'],
-    }),
-    # System dependencies
     ('tblib', '2.0.0', {
         'checksums': ['a6df30f272c08bf8be66e0775fad862005d950a6b8449b94f7c788731d70ecd7'],
     }),
-    ('astor', '0.8.1', {
-        'checksums': ['6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e'],
-    }),
-    # Optional profile plugin + dependency
-    ('gviz-api', '1.10.0', {
-        'source_tmpl': 'gviz_api-%(version)s.tar.gz',
-        'checksums': ['846692dd8cc73224fc31b18e41589bd934e1cc05090c6576af4b4b26c2e71b90'],
-    }),
-    ('tensorboard-plugin-profile', '2.13.1', {
-        'source_tmpl': 'tensorboard_plugin_profile-%(version)s.tar.gz',
-        'checksums': ['472d1cb85d7087c5294131eb640bd771f5515ecc4867030c7904718be7fc19c1'],
-    }),
     (name, version, {
-        'source_tmpl': 'v%(version)s.tar.gz',
-        'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
         'patches': [
-            'TensorFlow-2.4.0_dont-use-var-lock.patch',
-            'TensorFlow-2.9.1_remove-duplicate-gpu-tests.patch',
-            'TensorFlow-2.11.0_disable-avx512-extensions.patch',
-            'TensorFlow-2.13.0_add-default-shell-env.patch',
-            'TensorFlow-2.13.0_add-missing-system-absl-py-target.patch',
             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch',
+            'TensorFlow-2.15.1_fix-flatbuffer-license.patch',
+            'TensorFlow-2.15.1_fix-pybind11-build.patch',
+            'TensorFlow-2.15.1_add-default-shell-env.patch',
+            'TensorFlow-2.4.0_dont-use-var-lock.patch',
             'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch',
-            'TensorFlow-2.13.0_fix-protobuf-compatibility.patch',
-            'TensorFlow-2.13.0_remove-io-gcs-filesystem-dep.patch',
-            'TensorFlow-2.13.0_remove-libclang-dep.patch',
-            'TensorFlow-2.13.0_fix-numpy-2.15.compat.patch',
-            'TensorFlow-2.13.0_remove-typing_extensions-upper-bound.patch',
-            'TensorFlow-2.13.0_revert-to-flatbuffers-2.0.6.patch',
-            'TensorFlow-2.13.0_unpin-gast-version.patch',
+            'TensorFlow-2.15.1_disable-avx512-extensions.patch',
+            'patch1.1-fix_setup.py.patch',
+            'patch2.1-disable-tf32-in-fused-matmul-tests.patch',
+            'patch3-fix_patchelf.patch',
         ],
+        # 'preinstallopts': "sed -i '59 a\        use_default_shell_env = True,' tensorflow/tools/pip_package/utils/tf_wheel.bzl && ",
+        'source_tmpl': 'v%(version)s.tar.gz',
+        'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
+        'with_xla': True,
         'checksums': [
-            {'v2.13.0.tar.gz': 'e58c939079588623e6fa1d054aec2f90f95018266e0a970fd353a5244f5173dc'},
-            {'TensorFlow-2.4.0_dont-use-var-lock.patch':
-             'b14f2493fd2edf79abd1c4f2dde6c98a3e7d5cb9c25ab9386df874d5f072d6b5'},
-            {'TensorFlow-2.9.1_remove-duplicate-gpu-tests.patch':
-             '6fe50faab28387c622c68dc3fc0cbfb2a51000cd750c1a82f8420b54fcd2509f'},
-            {'TensorFlow-2.11.0_disable-avx512-extensions.patch':
-             'fb8e7694b5d2377cc44e6674ff85a7c50dc725f2f507cbcfda65f129f534b1cc'},
-            {'TensorFlow-2.13.0_add-default-shell-env.patch':
-             'a94b2e007bff5a08ec4e6ec3043985907a69e9eeaea69dc4fe2aa15d15b75aef'},
-            {'TensorFlow-2.13.0_add-missing-system-absl-py-target.patch':
-             '94bc3b155840af942437d06c43830dabf41d94391daf61e1d0add0a7bf20a538'},
+            {'v2.17.1.tar.gz': '2d3cfb48510f92f3a52fb05b820481c6f066a342a9f5296fe26d72c4ea757700'},
             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
+            {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
+             '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
+            {'TensorFlow-2.15.1_fix-pybind11-build.patch':
+             '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
+            {'TensorFlow-2.15.1_add-default-shell-env.patch':
+             '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+            {'TensorFlow-2.4.0_dont-use-var-lock.patch':
+             'b14f2493fd2edf79abd1c4f2dde6c98a3e7d5cb9c25ab9386df874d5f072d6b5'},
             {'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch':
              'd0818206846911d946666ded7d3216c0546e37cee1890a2f48dc1a9d71047cad'},
-            {'TensorFlow-2.13.0_fix-protobuf-compatibility.patch':
-             'a9658c035b663da1b7d1983a8e37883cc40c1c0cfa22132bb7fe19c4cbc9712a'},
-            {'TensorFlow-2.13.0_remove-io-gcs-filesystem-dep.patch':
-             '39f1cbecad4b3723481b30f18f16363ab1837c8749ee197ec88b92b493e9df67'},
-            {'TensorFlow-2.13.0_remove-libclang-dep.patch':
-             'f0d067d129e817b0d371c4e48a4a1ac08f80a2c137d52b05a3c7c4370dcbd1e5'},
-            {'TensorFlow-2.13.0_fix-numpy-2.15.compat.patch':
-             '4023be57bc8e33ae55ccac54b51d6532fea7ac4a32cb1125e3e42da0dec1669a'},
-            {'TensorFlow-2.13.0_remove-typing_extensions-upper-bound.patch':
-             'ed48464ed6f4cdbd0dde93ffc413c394d363278039502d77540ff7206c2048ae'},
-            {'TensorFlow-2.13.0_revert-to-flatbuffers-2.0.6.patch':
-             'f22757250181b6165e4b2ef1e199bd4cb344a9429be5a1086638f25bcbf650fc'},
-            {'TensorFlow-2.13.0_unpin-gast-version.patch':
-             '61e0c9b67aa6c48176fcbb429bf6aa36c4fdde604c82c02f58a043412fecf285'},
+            {'TensorFlow-2.15.1_disable-avx512-extensions.patch':
+             '506ceecff67237eed9cd9e9e114bc1461f35a343f77f83cb3dab710aa701dc0f'},
+            {'patch1.1-fix_setup.py.patch': '3725f863e2034ec8ddfde36dcabb729e39081851b5efd72aa1616c2055cb4562'},
+            {'patch2.1-disable-tf32-in-fused-matmul-tests.patch':
+             'eb39f2d9d11c6ff8b1755ae630d8be9e52a4bbf5aaeb3ca125c5dc9c398e2e69'},
+            {'patch3-fix_patchelf.patch': '3fadb6b4b2a0e24c5086e43990bafae34dfbdee4cde42439efc8b06f4283debe'},
         ],
-        'test_script': 'TensorFlow-2.x_mnist-test.py',
-        'test_tag_filters_cpu': '-gpu,-tpu,-no_cuda_on_cpu_tap,'
-                                '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only',
-        'test_tag_filters_gpu': 'gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
-                                '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only',
-        'test_targets': [
-            '//tensorflow/core/...',
-            '-//tensorflow/core:example_java_proto',
-            '-//tensorflow/core/example:example_protos_closure',
-            '//tensorflow/cc/...',
-            '//tensorflow/c/...',
-            '//tensorflow/python/...',
-            '-//tensorflow/c/eager:c_api_test_gpu',
-            '-//tensorflow/c/eager:c_api_distributed_test',
-            '-//tensorflow/c/eager:c_api_distributed_test_gpu',
-            '-//tensorflow/c/eager:c_api_cluster_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
-            '-//tensorflow/c/eager:c_api_remote_test_gpu',
-            '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
-            '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
-            '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
-        ],
-        # Need to have $HOME set for tests on PPC: https://github.com/tensorflow/tensorflow/issues/61814
-        'testopts': "--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small",
-        'testopts_gpu': "--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small "
-                        "--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute",
-        'with_xla': True,
     }),
 ]
 
+# (name, version, {
+#         'patches': [
+#             'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch', OK
+#             'TensorFlow-2.15.1_remove-libclang-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.15.1_add-default-shell-env.patch', OK
+#             'TensorFlow-2.15.1_fix-flatbuffer-license.patch', OK
+#             'TensorFlow-2.15.1_fix-pybind11-build.patch', OK
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch', -> not working but during bazel build not appling
+#             'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch', not working - added here - needs fix-AVX512-eigen-compilation.patch
+#             'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch', -> UPDATE of setup.py - OK patch1
+#             'TensorFlow-2.1.0_fix-cuda-build.patch', -> not working -> this looks fixed in 2.17.1 OK?
+#             'TensorFlow-2.4.0_dont-use-var-lock.patch', OK
+#             'TensorFlow-2.13.0_exclude-xnnpack-on-ppc.patch', OK
+#             'TensorFlow-2.15.1_remove-duplicate-gpu-tests.patch', -> not working TEST -> seems already fixed in 2.17.1 OK?
+#             'TensorFlow-2.15.1_fix-cuda_build_defs.patch', -> not working -> this looks fixed in 2.17.1 OK?
+                # there are 3 fixes:
+                    # 1) third_party/nccl/system.BUILD.tpl - already fixed OK
+                    # 2) third_party/xla/third_party/nccl/system.BUILD.tpl - not there anymore OK
+                    # 3) third_party/xla/third_party/tsl/third_party/nccl/system.BUILD.tpl - already fixed OK
+#             'TensorFlow-2.15.1_disable-avx512-extensions.patch', OK
+#             'TensorFlow-2.15.1_disable-tf32-in-fused-matmul-tests.patch' -> not working TEST -> created patch2.1-disable-tf32-in-fused-matmul-tests.patch - OK
+#         ],
+#         'source_tmpl': 'v%(version)s.tar.gz',
+#         'source_urls': ['https://github.com/tensorflow/tensorflow/archive/'],
+#         'test_script': 'TensorFlow-2.x_mnist-test.py',
+#         'test_tag_filters_cpu': '-gpu,-tpu,-no_cuda_on_cpu_tap,-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only',
+#         'test_tag_filters_gpu': ('gpu,-no_gpu,-nogpu,-gpu_cupti,-no_cuda11,'
+#                                  '-no_pip,-no_oss,-oss_serial,-benchmark-test,-v1only'),
+#         'test_targets': [
+#             '//tensorflow/core/...',
+#             '-//tensorflow/core:example_java_proto',
+#             '-//tensorflow/core/example:example_protos_closure',
+#             '//tensorflow/cc/...',
+#             '//tensorflow/c/...',
+#             '//tensorflow/python/...',
+#             '-//tensorflow/c/eager:c_api_test_gpu',
+#             '-//tensorflow/c/eager:c_api_distributed_test',
+#             '-//tensorflow/c/eager:c_api_distributed_test_gpu',
+#             '-//tensorflow/c/eager:c_api_cluster_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_function_test_gpu',
+#             '-//tensorflow/c/eager:c_api_remote_test_gpu',
+#             '-//tensorflow/core/common_runtime:collective_param_resolver_local_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_ops_test',
+#             '-//tensorflow/core/kernels/mkl:mkl_fused_batch_norm_op_test',
+#             '-//tensorflow/core/ir/importexport/tests/roundtrip/...',
+#         ],
+#         'testopts': "--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small ",
+#         'testopts_gpu': ('--test_env=HOME=/tmp --test_timeout=3600 --test_size_filters=small '
+#                          '--run_under=//tensorflow/tools/ci_build/gpu_build:parallel_gpu_execute '),
+#         'with_xla': True,
+#         'checksums': [
+#             {'v2.15.1.tar.gz': 'f36416d831f06fe866e149c7cd752da410a11178b01ff5620e9f265511ed57cf'},
+#             {'TensorFlow-2.13.0_add-missing-system-protobuf-targets.patch':
+#              '77d8c8a5627493fc7c38b4de79d49e60ff6628b05ff969f4cd3ff9857176c459'},
+#             {'TensorFlow-2.15.1_remove-libclang-dep.patch':
+#              '871b2f0221b7a150ac9f563ffad7187e052a7eedd95c20fb4524987d7edb6f21'},
+#             {'TensorFlow-2.15.1_remove-io-gcs-filesystem-dep.patch':
+#              'eba7351a4b0696c589b9c507bacb0257ebce8c39fde39ab72d5d6a69deaaec02'},
+#             {'TensorFlow-2.15.1_add-default-shell-env.patch':
+#              '3d5196b4bf2e91048dc8a18f9e8f487a223fcd973d6302e80b0d4000ea3d652b'},
+#             {'TensorFlow-2.15.1_fix-flatbuffer-license.patch':
+#              '2c04d5095977a628a238dbf93c5fada7159c86752a7183e64e0cf7c7ab00caf4'},
+#             {'TensorFlow-2.15.1_fix-pybind11-build.patch':
+#              '3bb350ac92ab99c63c951c96b3b0160699f5f16822b64f72111ebfd2275cafce'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation.patch':
+#              '761059e5f5f5eeeef8aed5517a7685a0eb0a9193d4afe8d45237527681c9c0a3'},
+#             {'TensorFlow-2.15.1_fix-AVX512-eigen-compilation-gcc13.patch':
+#              '68adc4bb726a60f2deed2d746d305960505c5cd3abbc018bad1074d95e2a3853'},
+#             {'TensorFlow-2.15.1_upgrade-ml_dtypes-dependency-version.patch':
+#              'da4a8e63251a7f6aca38a55f8d4ee2955278c320bd20158a78dabd4decb8c9f0'},
+#         ],
+#     }),
+
+#  Taken from tensorboard-2.15.1-gfbf-2023a.eb:
+#  Relax restriction on protobuf dependency as issue was fixed
+#  in https://github.com/protocolbuffers/upb/pull/1514
+#  see also: https://github.com/easybuilders/easybuild-easyconfigs/pull/19671
+# postinstallcmds = [
+#     'sed -i "s/Requires-Dist: protobuf.*/Requires-Dist: protobuf >=3.19.6/g" ' +
+#     '%(installdir)s/lib/python%(pyshortver)s/site-packages/tensorboard-2.15.2.dist-info/METADATA',
+# ]
+
 moduleclass = 'lib'
+
+# E9:
+    # <- install step failed
+    # FAILED: Installation ended unsuccessfully: Failed to isolate built .whl in []:
+    # /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a (took 2 hours 27 mins 12 secs)
+    # == Results of the build can be found in the log file(s)
+    # /tmp/vsc47063/eb-rfl_eas2/easybuild-TensorFlow-2.17.1-20250416.093004.ljuae.log
+# E8: OK
+    # -> add patch3 from FlameFire -> build OK -> log5.txt
+    # -> update easyblock to add PATH to bazel build - L971 -> not help :(
+    # -> seems patchelf is not on the PATH
+    # <- build nearly done - patchelf is in deps
+        # [14,093 / 14,094] [Prepa] Action tensorflow/tools/pip_package/wheel_house
+        # SUBCOMMAND: # //tensorflow/tools/pip_package:wheel [action 'Action tensorflow/tools/pip_package/wheel_house', configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d, execution platform: @local_execution_config_platform//:platform]
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # [14,093 / 14,094] Action tensorflow/tools/pip_package/wheel_house; 1s local
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:265:9: Action tensorflow/tools/pip_package/wheel_house failed: (Exit 1): build_pip_package_py failed: error executing command (from target //tensorflow/tools/pip_package:wheel)
+        # (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+        # exec env - \
+        # bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
+        # # Configuration: 27c5d858386b230acd447b1fcb701ea8fde4c0c745b933c5bf7444388d93d52d
+        # # Execution platform: @local_execution_config_platform//:platform
+        # Traceback (most recent call last):
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 343, in <module>
+        #     prepare_wheel_srcs(args.headers, args.srcs, args.xla_aot,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 197, in prepare_wheel_srcs
+        #     patch_so(srcs_dir)
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 242, in patch_so
+        #     rpath = subprocess.check_output(
+        #             ^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 466, in check_output
+        #     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 548, in run
+        #     with Popen(*popenargs, **kwargs) as process:
+        #         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1026, in __init__
+        #     self._execute_child(args, executable, preexec_fn, close_fds,
+        # File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1950, in _execute_child
+        #     raise child_exception_type(errno_num, err_msg, err_filename)
+        # FileNotFoundError: [Errno 2] No such file or directory: 'patchelf'
+        # Target //tensorflow/tools/pip_package:wheel failed to build
+        # INFO: Elapsed time: 8276.555s, Critical Path: 263.76s
+        # INFO: 14094 processes: 993 internal, 13101 local.
+# E7: OK
+    # -> posibly fixed in TensorFlow-2.15.1_add-default-shell-env.patch
+    # -> absl-py work ok...
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/python/util/BUILD:756:18: Extracting tensorflow APIs for //tensorflow/python/util:tf_inspect to bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json. failed: (Exit 1): main failed: error executing command (from target //tensorflow/python/util:tf_inspect)
+    #   (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
+    #   exec env - \
+    #   bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main --output bazel-out/k8-opt/bin/tensorflow/python/util/tf_inspect_extracted_tensorflow_api.json --decorator tensorflow.python.util.tf_export.tf_export --api_name tensorflow tensorflow/python/util/tf_inspect.py)
+    # # Configuration: 68a9a1eb4733c168b1855c6c0bc0145ab4a1941b21e6e10d0591be21ddaf581f
+    # # Execution platform: @local_execution_config_platform//:platform
+    # Traceback (most recent call last):
+    #   File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/python/tools/api/generator2/extractor/main.runfiles/org_tensorflow/tensorflow/python/tools/api/generator2/extractor/main.py", line 17, in <module>
+    #     from absl import app
+    # ModuleNotFoundError: No module named 'absl'
+    # Target //tensorflow/tools/pip_package:wheel failed to build
+# E6: OK
+    # -> add patch 'TensorFlow-2.15.1_fix-flatbuffer-license.patch' + 'TensorFlow-2.15.1_fix-pybind11-build.patch'
+    # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:83:10: no such target '@flatbuffers//:LICENSE': target 'LICENSE' not declared in package '' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/flatbuffers/BUILD.bazel (Tip: use `query "@flatbuffers//:*"` to see all the targets in that package) and referenced by '//tensorflow/tools/pip_package:licenses'
+# E5: OK
+    # -> update easyblosk to use need wheel build command: https://github.com/tensorflow/tensorflow/issues/63298#issuecomment-1986141742 -> OK
+    # same issue here: https://github.com/tensorflow/tensorflow/issues/63302
+    # -> update easyblock L972 to `bazel-bin/tensorflow/tools/pip_package/build_pip_package_py` -> NO
+        # usage: build_pip_package.py [-h] --output-name OUTPUT_NAME --project-name PROJECT_NAME [--headers HEADERS] [--srcs SRCS]
+        #                     [--xla_aot XLA_AOT] [--version VERSION] [--collab COLLAB]
+        # build_pip_package.py: error: the following arguments are required: --output-name, --project-name
+    # == 2025-04-09 11:56:30,684 run.py:598 INFO Output of 'bazel-bin/tensorflow/tools/pip_package/build_pip_package ...' shell command (stdout + stderr):
+    # /usr/bin/bash: line 1: bazel-bin/tensorflow/tools/pip_package/build_pip_package: No such file or directory
+# E4: OK
+    # -> seems as a bazel version problem - in .bazelversion is 6.5.0 but I have 7.4.1 -> prepare bazel 6.5.0
+    # <- log2.txt <- bazel cmd 
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: in py_runtime rule @@local_config_python//:py2_runtime: 
+        # Traceback (most recent call last):
+        #     File "/virtual_builtins_bzl/common/python/py_runtime_rule.bzl", line 40, column 17, in _py_runtime_impl
+        # Error in fail: interpreter_path must be an absolute path
+        # ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/local_config_python/BUILD:10:11: Analysis of target '@@local_config_python//:py2_runtime' failed
+        # ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package_py' failed; build aborted: Analysis failed
+# E3: OK
+    # -> https://github.com/tensorflow/tensorflow/blob/3c92ac03cab816044f7b18a86eb86aa01a294d95/tensorflow/tools/pip_package/BUILD#L235
+    #   was changed -> update easyblock L965 to: + ['//tensorflow/tools/pip_package:build_pip_package_py'] -> OK
+    # <- after bazel cmd <- log1.txt
+        # ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+        # ERROR: no such target '//tensorflow/tools/pip_package:build_pip_package': target 'build_pip_package' not declared in package 'tensorflow/tools/pip_package' defined by /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD (did you mean build_pip_package.py, or build_pip_package_py?)
+# E2: OK
+    # import astor +  No module named 'cython'
+# E1: OK
+    # fixed by termcolor 2.5.0
+    # -> try v2.19.0...
+    # -> problem with python version?
+    # == 2025-04-08 12:58:22,825 run.py:598 INFO Output of '/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/bin/python ...' shell command (stdout + stderr):
+    # Processing /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/termcolor/termcolor-3.0.1
+    #   Preparing metadata (pyproject.toml): started
+    #   Preparing metadata (pyproject.toml): finished with status 'error'
+    #   error: subprocess-exited-with-error
+    #   × Preparing metadata (pyproject.toml) did not run successfully.
+    #   │ exit code: 1
+    #   ╰─> [21 lines of output]
+    #       Traceback (most recent call last):
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
+    #           main()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
+    #           json_out['return_val'] = hook(**hook_input['kwargs'])
+    #                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
+    #           whl_basename = backend.build_wheel(metadata_directory, config_settings)
+    #                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel
+    #           return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
+    #                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
+    #           self.metadata.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 266, in validate_fields
+    #           self.core.validate_fields()
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 1376, in validate_fields
+    #           getattr(self, attribute)
+    #         File "/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages/hatchling/metadata/core.py", line 750, in license_files
+    #           raise TypeError(message)
+    #       TypeError: Field `project.license-files` must be a table
+    #       [end of output]
\ No newline at end of file

Updated software tensorboard-2.18.0-gfbf-2024a.eb

Diff against tensorboard-2.18.0-gfbf-2023b.eb

easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2023b.eb

diff --git a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2023b.eb b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
index cfa9250f6f..684e468aa7 100644
--- a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2023b.eb
+++ b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
@@ -7,25 +7,22 @@ homepage = 'https://github.com/tensorflow/tensorboard'
 description = """TensorBoard is a suite of web applications for inspecting and
 understanding your TensorFlow runs and graphs."""
 
-toolchain = {'name': 'gfbf', 'version': '2023b'}
+toolchain = {'name': 'gfbf', 'version': '2024a'}
 
 builddependencies = [
-    ('poetry', '1.6.1'),
+    ('poetry', '1.8.3'),
 ]
 
 dependencies = [
-    ('Python', '3.11.5'),
-    ('SciPy-bundle', '2023.11'),
-    ('protobuf-python', '4.25.3'),
-    ('grpcio', '1.67.1'),
-    ('Markdown', '3.6'),
+    ('Python', '3.12.3'),
+    ('SciPy-bundle', '2024.05'),
+    ('protobuf-python', '5.28.0'),
+    ('grpcio', '1.70.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
 ]
 
 exts_list = [
-    ('absl-py', '2.1.0', {
-        'modulename': 'absl',
-        'checksums': ['7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff'],
-    }),
     ('cachetools', '5.5.0', {
         'checksums': ['2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a'],
     }),
@@ -43,9 +40,9 @@ exts_list = [
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
         'checksums': ['7e0610d205889588983836ec05dc098e80f97b7e7bbff7e994ebb78f578d0ddb'],
     }),
-    ('Werkzeug', '3.1.0', {
+    ('Werkzeug', '3.1.3', {
         'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
-        'checksums': ['6f2a0d38f25ba5a75c36c45b4ae350c7a23b57e3b974e9eb2d6851f2c648c00d'],
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
     (name, version, {
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
Diff against tensorboard-2.15.1-gfbf-2022b.eb

easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2022b.eb

diff --git a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2022b.eb b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
index 2c8ceb4953..684e468aa7 100644
--- a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2022b.eb
+++ b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
@@ -1,87 +1,53 @@
 easyblock = 'PythonBundle'
 
 name = 'tensorboard'
-version = '2.15.1'
+version = '2.18.0'
 
 homepage = 'https://github.com/tensorflow/tensorboard'
 description = """TensorBoard is a suite of web applications for inspecting and
 understanding your TensorFlow runs and graphs."""
 
-toolchain = {'name': 'gfbf', 'version': '2022b'}
+toolchain = {'name': 'gfbf', 'version': '2024a'}
 
-postinstallpatches = [
-    ('tensorboard-2.10_jupyterhub-support.patch', 'lib/python%(pyshortver)s/site-packages'),
-]
-checksums = [
-    {'tensorboard-2.10_jupyterhub-support.patch':
-     '50a292e6ee518aecb5644595e0f3db4867be4f82e328e008e5a3f6a1f19baf87'},
+builddependencies = [
+    ('poetry', '1.8.3'),
 ]
 
 dependencies = [
-    ('Python', '3.10.8'),
-    ('SciPy-bundle', '2023.02'),
-    ('protobuf-python', '4.23.0'),
-    ('grpcio', '1.57.0'),
+    ('Python', '3.12.3'),
+    ('SciPy-bundle', '2024.05'),
+    ('protobuf-python', '5.28.0'),
+    ('grpcio', '1.70.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
 ]
 
 exts_list = [
-    ('absl-py', '2.1.0', {
-        'modulename': 'absl',
-        'checksums': ['7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff'],
-    }),
-    ('cachetools', '5.3.2', {
-        'checksums': ['086ee420196f7b2ab9ca2db2520aca326318b68fe5ba8bc4d49cca91add450f2'],
+    ('cachetools', '5.5.0', {
+        'checksums': ['2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a'],
     }),
-    ('pyasn1_modules', '0.3.0', {
-        'checksums': ['5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c'],
+    ('pyasn1_modules', '0.4.1', {
+        'checksums': ['c28e2dbf9c06ad61c71a075c7e0f9fd0f1b0bb2d2ad4377f240d33ac2ab60a7c'],
     }),
     ('rsa', '4.9', {
         'checksums': ['e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21'],
     }),
-    ('google-auth', '2.26.2', {
+    ('google_auth', '2.35.0', {
         'modulename': 'google.auth',
-        'checksums': ['97327dbbf58cccb58fc5a1712bba403ae76668e64814eb30f7316f7e27126b81'],
-    }),
-    ('oauthlib', '3.2.2', {
-        'checksums': ['9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918'],
-    }),
-    ('requests-oauthlib', '1.3.1', {
-        'checksums': ['75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a'],
-    }),
-    ('google-auth-oauthlib', '1.2.0', {
-        'checksums': ['292d2d3783349f2b0734a0a0207b1e1e322ac193c2c09d8f7c613fb7cc501ea8'],
-    }),
-    ('Markdown', '3.5.2', {
-        'checksums': ['e1ac7b3dc550ee80e602e71c1d168002f062e49f1b11e26a36264dafd4df2ef8'],
+        'checksums': ['f4c64ed4e01e8e8b646ef34c018f8bf3338df0c8e37d8b3bba40e7f574a3278a'],
     }),
     ('tensorboard_data_server', '0.7.2', {
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
         'checksums': ['7e0610d205889588983836ec05dc098e80f97b7e7bbff7e994ebb78f578d0ddb'],
     }),
-    ('gviz-api', '1.10.0', {
-        'source_tmpl': 'gviz_api-%(version)s.tar.gz',
-        'checksums': ['846692dd8cc73224fc31b18e41589bd934e1cc05090c6576af4b4b26c2e71b90'],
-    }),
-    ('tensorboard-plugin-profile', '2.15.1', {
-        'source_tmpl': 'tensorboard_plugin_profile-%(version)s.tar.gz',
-        'checksums': ['84bb33e446eb4a9c0616f669fc6a42cdd40eadd9ae1d74bf756f4f0479993273'],
-    }),
-    ('Werkzeug', '3.0.1', {
+    ('Werkzeug', '3.1.3', {
         'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
-        'checksums': ['507e811ecea72b18a404947aded4b3390e1db8f826b494d76550ef45bb3b1dcc'],
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
     (name, version, {
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
-        'checksums': ['c46c1d1cf13a458c429868a78b2531d8ff5f682058d69ec0840b0bc7a38f1c0f'],
+        'checksums': ['107ca4821745f73e2aefa02c50ff70a9b694f39f790b11e6f682f7d326745eab'],
     }),
 ]
 
-#  Relax restriction on protobuf dependency as issue was fixed
-#  in https://github.com/protocolbuffers/upb/pull/1514
-#  see also: https://github.com/easybuilders/easybuild-easyconfigs/pull/19671
-postinstallcmds = [
-    'sed -i "s/Requires-Dist: protobuf.*/Requires-Dist: protobuf >=3.19.6/g" ' +
-    '%(installdir)s/lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s.dist-info/METADATA',
-]
-
 moduleclass = 'lib'
Diff against tensorboard-2.15.1-gfbf-2023a.eb

easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2023a.eb

diff --git a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2023a.eb b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
index f8eca13eaf..684e468aa7 100644
--- a/easybuild/easyconfigs/t/tensorboard/tensorboard-2.15.1-gfbf-2023a.eb
+++ b/easybuild/easyconfigs/t/tensorboard/tensorboard-2.18.0-gfbf-2024a.eb
@@ -1,91 +1,53 @@
 easyblock = 'PythonBundle'
 
 name = 'tensorboard'
-version = '2.15.1'
+version = '2.18.0'
 
 homepage = 'https://github.com/tensorflow/tensorboard'
 description = """TensorBoard is a suite of web applications for inspecting and
 understanding your TensorFlow runs and graphs."""
 
-toolchain = {'name': 'gfbf', 'version': '2023a'}
-
-postinstallpatches = [
-    ('tensorboard-2.10_jupyterhub-support.patch', 'lib/python%(pyshortver)s/site-packages'),
-]
-checksums = [
-    {'tensorboard-2.10_jupyterhub-support.patch':
-     '50a292e6ee518aecb5644595e0f3db4867be4f82e328e008e5a3f6a1f19baf87'},
-]
+toolchain = {'name': 'gfbf', 'version': '2024a'}
 
 builddependencies = [
-    ('poetry', '1.5.1'),
+    ('poetry', '1.8.3'),
 ]
 
 dependencies = [
-    ('Python', '3.11.3'),
-    ('SciPy-bundle', '2023.07'),
-    ('protobuf-python', '4.24.0'),
-    ('grpcio', '1.57.0'),
+    ('Python', '3.12.3'),
+    ('SciPy-bundle', '2024.05'),
+    ('protobuf-python', '5.28.0'),
+    ('grpcio', '1.70.0'),
+    ('Markdown', '3.7'),
+    ('absl-py', '2.1.0'),
 ]
 
 exts_list = [
-    ('absl-py', '2.1.0', {
-        'modulename': 'absl',
-        'checksums': ['7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff'],
+    ('cachetools', '5.5.0', {
+        'checksums': ['2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a'],
     }),
-    ('cachetools', '5.3.2', {
-        'checksums': ['086ee420196f7b2ab9ca2db2520aca326318b68fe5ba8bc4d49cca91add450f2'],
-    }),
-    ('pyasn1_modules', '0.3.0', {
-        'checksums': ['5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c'],
+    ('pyasn1_modules', '0.4.1', {
+        'checksums': ['c28e2dbf9c06ad61c71a075c7e0f9fd0f1b0bb2d2ad4377f240d33ac2ab60a7c'],
     }),
     ('rsa', '4.9', {
         'checksums': ['e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21'],
     }),
-    ('google-auth', '2.26.2', {
+    ('google_auth', '2.35.0', {
         'modulename': 'google.auth',
-        'checksums': ['97327dbbf58cccb58fc5a1712bba403ae76668e64814eb30f7316f7e27126b81'],
-    }),
-    ('oauthlib', '3.2.2', {
-        'checksums': ['9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918'],
-    }),
-    ('requests-oauthlib', '1.3.1', {
-        'checksums': ['75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a'],
-    }),
-    ('google-auth-oauthlib', '1.2.0', {
-        'checksums': ['292d2d3783349f2b0734a0a0207b1e1e322ac193c2c09d8f7c613fb7cc501ea8'],
-    }),
-    ('Markdown', '3.5.2', {
-        'checksums': ['e1ac7b3dc550ee80e602e71c1d168002f062e49f1b11e26a36264dafd4df2ef8'],
+        'checksums': ['f4c64ed4e01e8e8b646ef34c018f8bf3338df0c8e37d8b3bba40e7f574a3278a'],
     }),
     ('tensorboard_data_server', '0.7.2', {
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
         'checksums': ['7e0610d205889588983836ec05dc098e80f97b7e7bbff7e994ebb78f578d0ddb'],
     }),
-    ('gviz-api', '1.10.0', {
-        'source_tmpl': 'gviz_api-%(version)s.tar.gz',
-        'checksums': ['846692dd8cc73224fc31b18e41589bd934e1cc05090c6576af4b4b26c2e71b90'],
-    }),
-    ('tensorboard-plugin-profile', '2.15.1', {
-        'source_tmpl': 'tensorboard_plugin_profile-%(version)s.tar.gz',
-        'checksums': ['84bb33e446eb4a9c0616f669fc6a42cdd40eadd9ae1d74bf756f4f0479993273'],
-    }),
-    ('Werkzeug', '3.0.1', {
+    ('Werkzeug', '3.1.3', {
         'source_tmpl': '%(namelower)s-%(version)s.tar.gz',
-        'checksums': ['507e811ecea72b18a404947aded4b3390e1db8f826b494d76550ef45bb3b1dcc'],
+        'checksums': ['60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746'],
     }),
     (name, version, {
         'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
-        'checksums': ['c46c1d1cf13a458c429868a78b2531d8ff5f682058d69ec0840b0bc7a38f1c0f'],
+        'checksums': ['107ca4821745f73e2aefa02c50ff70a9b694f39f790b11e6f682f7d326745eab'],
     }),
 ]
 
-#  Relax restriction on protobuf dependency as issue was fixed
-#  in https://github.com/protocolbuffers/upb/pull/1514
-#  see also: https://github.com/easybuilders/easybuild-easyconfigs/pull/19671
-postinstallcmds = [
-    'sed -i "s/Requires-Dist: protobuf.*/Requires-Dist: protobuf >=3.19.6/g" ' +
-    '%(installdir)s/lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s.dist-info/METADATA',
-]
-
 moduleclass = 'lib'

@pavelToman
Copy link
Collaborator Author

pavelToman commented Apr 15, 2025

Error from the last log:

# Configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # //tensorflow/python/util:_pywrap_tfprof.so [action 'Linking tensorflow/python/util/_pywrap_tfprof.so', configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e, execution platform: @local_execution_config_platform//:platform]
(cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
  exec env - \
    CPATH=/apps/gent/RHEL9/cascadelake-ib/software/cURL/8.7.1-GCCcore-13.3.0/include:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/double-conversion/3.3.0-GCCcore-13.3.0/include:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/flatbuffers/24.3.25-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/giflib/5.2.1-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/hwloc/2.10.0-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/ICU/75.1-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/JsonCpp/1.9.5-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/libjpeg-turbo/3.0.1-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/libpng/1.6.43-GCCcore-13.3.0/include:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/nsync/1.29.2-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/pybind11/2.12.0-GCC-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/snappy/1.1.10-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/SQLite/3.45.3-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/zlib/1.3.1-GCCcore-13.3.0/include:/apps/gent/RHEL9/cascadelake-ib/software/OpenSSL/3/include \
    LD_LIBRARY_PATH=/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/lib64:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/protobuf/28.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/Abseil/20240722.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/snappy/1.1.10-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libpng/1.6.43-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/nsync/1.29.2-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libjpeg-turbo/3.0.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/JsonCpp/1.9.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/giflib/5.2.1-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/flatbuffers/24.3.25-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/double-conversion/3.3.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/HDF5/1.14.5-gompi-2024a/lib:/apps/gent/RHEL9/cascadelake-ib/software/Szip/2.1.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/SciPy-bundle/2024.05-gfbf-2024a/lib/python3.12/site-packages/numpy/core/lib:/apps/gent/RHEL9/cascadelake-ib/software/ScaLAPACK/2.2.0-gompi-2024a-fb/lib:/apps/gent/RHEL9/cascadelake-ib/software/FFTW.MPI/3.3.10-gompi-2024a/lib:/apps/gent/RHEL9/cascadelake-ib/software/FFTW/3.3.10-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/FlexiBLAS/3.4.4-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/OpenBLAS/0.3.27-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/OpenMPI/5.0.3-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/UCC/1.3.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/PRRTE/3.0.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/PMIx/5.0.2-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/UCX/1.16.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libevent/2.1.12-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/hwloc/2.10.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libpciaccess/0.18.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/numactl/2.0.18-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/Boost/1.85.0-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/ICU/75.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/zstd/1.5.6-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/lz4/1.9.4-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/gettext/0.22.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libiconv/1.17-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libxml2/2.12.7-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/expat/2.6.2-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/cURL/8.7.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/Java/11.0.20/lib:/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/OpenSSL/3/lib:/apps/gent/RHEL9/cascadelake-ib/software/libffi/3.4.5-GCCcore-13.3.0/lib64:/apps/gent/RHEL9/cascadelake-ib/software/XZ/5.4.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/SQLite/3.45.3-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/Tcl/8.6.14-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libreadline/8.2-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/ncurses/6.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/bzip2/1.0.8-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/binutils/2.42-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/zlib/1.3.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/GCCcore/13.3.0/lib64 \
    LIBRARY_PATH=/apps/gent/RHEL9/cascadelake-ib/software/cURL/8.7.1-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/double-conversion/3.3.0-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/flatbuffers/24.3.25-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/giflib/5.2.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/hwloc/2.10.0-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/ICU/75.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/JsonCpp/1.9.5-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libjpeg-turbo/3.0.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/libpng/1.6.43-GCCcore-13.3.0/lib:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/nsync/1.29.2-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/pybind11/2.12.0-GCC-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/snappy/1.1.10-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/SQLite/3.45.3-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/zlib/1.3.1-GCCcore-13.3.0/lib:/apps/gent/RHEL9/cascadelake-ib/software/OpenSSL/3/lib \
    PATH='/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/ld.bfd_wrapper:/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/ld.gold_wrapper:/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/ld_wrapper:/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/gfortran_wrapper:/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/gxx_wrapper:/tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/gcc_wrapper:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/sbin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/tensorboard/2.18.0-gfbf-2024a/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/Markdown/3.7-GCCcore-13.3.0/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/protobuf/28.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/libpng/1.6.43-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/patchelf/0.18.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/libjpeg-turbo/3.0.1-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/NASM/2.16.03-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/giflib/5.2.1-GCCcore-13.3.0/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/flatbuffers/24.3.25-GCCcore-13.3.0/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/dill/0.3.9-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/HDF5/1.14.5-gompi-2024a/bin:/apps/gent/RHEL9/cascadelake-ib/software/SciPy-bundle/2024.05-gfbf-2024a/bin:/apps/gent/RHEL9/cascadelake-ib/software/Python-bundle-PyPI/2024.06-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/FFTW/3.3.10-GCC-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/FlexiBLAS/3.4.4-GCC-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/OpenMPI/5.0.3-GCC-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/UCC/1.3.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/PRRTE/3.0.5-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/PMIx/5.0.2-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/UCX/1.16.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/libevent/2.1.12-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/hwloc/2.10.0-GCCcore-13.3.0/sbin:/apps/gent/RHEL9/cascadelake-ib/software/hwloc/2.10.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/numactl/2.0.18-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/Cython/3.0.10-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/poetry/1.8.3-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/virtualenv/20.26.2-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/UnZip/6.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/pybind11/2.12.0-GCC-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/ICU/75.1-GCCcore-13.3.0/sbin:/apps/gent/RHEL9/cascadelake-ib/software/ICU/75.1-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/zstd/1.5.6-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/lz4/1.9.4-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/gzip/1.13-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/git/2.45.1-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/Perl/5.38.2-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/gettext/0.22.5-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/libiconv/1.17-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/libxml2/2.12.7-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/expat/2.6.2-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/cURL/8.7.1-GCCcore-13.3.0/bin:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/Bazel/6.5.0-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/Java/11.0.20:/apps/gent/RHEL9/cascadelake-ib/software/Java/11.0.20/bin:/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/OpenSSL/3/bin:/apps/gent/RHEL9/cascadelake-ib/software/XZ/5.4.5-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/SQLite/3.45.3-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/Tcl/8.6.14-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/ncurses/6.5-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/bzip2/1.0.8-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/binutils/2.42-GCCcore-13.3.0/bin:/apps/gent/RHEL9/cascadelake-ib/software/GCCcore/13.3.0/bin:/user/gent/470/vsc47063/easybuild/easybuild-framework:/usr/libexec/jobcli:/usr/local/vsc/bin:/opt/VirtualGL/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/user/gent/470/vsc47063/.dotnet/tools:$PATH' \
    PWD=/proc/self/cwd \
    PYTHONNOUSERSITE=1 \
    PYTHONPATH=/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/tensorboard/2.18.0-gfbf-2024a/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/absl-py/2.1.0-GCCcore-13.3.0/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/Markdown/3.7-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/wrapt/1.16.0-gfbf-2024a/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/grpcio/1.70.0-GCCcore-13.3.0/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/protobuf-python/5.28.0-GCCcore-13.3.0/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/ml_dtypes/0.5.0-gfbf-2024a/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/flatbuffers-python/24.3.25-GCCcore-13.3.0/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/dill/0.3.9-GCCcore-13.3.0/lib/python3.12/site-packages:/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/h5py/3.12.1-foss-2024a/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/mpi4py/4.0.1-gompi-2024a/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/SciPy-bundle/2024.05-gfbf-2024a/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/Python-bundle-PyPI/2024.06-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/Cython/3.0.10-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/poetry/1.8.3-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/virtualenv/20.26.2-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/cryptography/42.0.8-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/cffi/1.16.0-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/pybind11/2.12.0-GCC-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/hatchling/1.24.2-GCCcore-13.3.0/lib/python3.12/site-packages:/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/easybuild/python \
    PYTHON_BIN_PATH=/apps/gent/RHEL9/cascadelake-ib/software/Python/3.12.3-GCCcore-13.3.0/bin/python \
    PYTHON_LIB_PATH=/scratch/gent/vo/001/gvo00117/easybuild/RHEL9/cascadelake-ampere-ib/software/TensorFlow/2.17.1-foss-2024a/lib/python3.12/site-packages \
    TF2_BEHAVIOR=1 \
    TF_SYSTEM_LIBS=absl_py,astor_archive,astunparse_archive,boringssl,curl,cython,dill_archive,double_conversion,flatbuffers,functools32_archive,gast_archive,gif,hwloc,icu,jsoncpp_git,libjpeg_turbo,nasm,nsync,org_sqlite,pasta,png,pybind11,six_archive,snappy,tblib_archive,termcolor_archive,typing_extensions_archive,wrapt,zlib \
  /tmp/vsc47063/eb-avwk66j7/tmp_dp09jye/rpath_wrappers/gcc_wrapper/gcc @bazel-out/k8-opt/bin/tensorflow/python/util/_pywrap_tfprof.so-2.params)
# Configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e
# Execution platform: @local_execution_config_platform//:platform
SUBCOMMAND: # //tensorflow/tools/pip_package:wheel [action 'Action tensorflow/tools/pip_package/wheel_house', configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e, execution platform: @local_execution_config_platform//:platform]
(cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
  exec env - \
  bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
# Configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e
# Execution platform: @local_execution_config_platform//:platform
[14,093 / 14,094] Action tensorflow/tools/pip_package/wheel_house; 0s local
ERROR: /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/tensorflow-2.17.1/tensorflow/tools/pip_package/BUILD:265:9: Action tensorflow/tools/pip_package/wheel_house failed: (Exit 1): build_pip_package_py failed: error executing command (from target //tensorflow/tools/pip_package:wheel) 
  (cd /tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow && \
  exec env - \
  bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py @bazel-out/k8-opt/bin/tensorflow/tools/pip_package/wheel_house-0.params)
# Configuration: bc21f6b06fd988dde58e77626fd7fbae6b5ce63f30e0b561b480e6135135a06e
# Execution platform: @local_execution_config_platform//:platform
Traceback (most recent call last):
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 343, in <module>
    prepare_wheel_srcs(args.headers, args.srcs, args.xla_aot,
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 197, in prepare_wheel_srcs
    patch_so(srcs_dir)
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/execroot/org_tensorflow/bazel-out/k8-opt-exec-50AE0418/bin/tensorflow/tools/pip_package/build_pip_package_py.runfiles/org_tensorflow/tensorflow/tools/pip_package/build_pip_package.py", line 242, in patch_so
    rpath = subprocess.check_output(
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/tmp/vsc47063/easybuild/build/TensorFlow/2.17.1/foss-2024a/TensorFlow/bazel-root/141223baaa9a9295ba809e928a04b21d/external/python_x86_64-unknown-linux-gnu/lib/python3.12/subprocess.py", line 1950, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'patchelf'
Target //tensorflow/tools/pip_package:wheel failed to build
INFO: Elapsed time: 8211.545s, Critical Path: 261.33s
INFO: 14094 processes: 993 internal, 13101 local.
FAILED: Build did NOT complete successfully

@pavelToman pavelToman closed this May 6, 2025
@pavelToman
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant