diff --git a/spack.yaml b/spack.yaml
index d99035b4b46eb61b6c7f877c4adda51ca7f7b262..8ba0006ecfc25fb887e25f98c4ec4a0f56a850e1 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -42,7 +42,7 @@ spack:
     - py-hippounit@1.3.6
     - py-efel@4.0.4
     - py-hbp-neuromorphic-platform@0.10.1
-    - py-torch~cuda~rocm~valgrind~mkldnn~mpi~gloo~tensorpipe~onnx_ml ^protobuf@:3.17.999
+    - py-torch~cuda~rocm~valgrind~mkldnn~mpi~gloo~tensorpipe~onnx_ml@1.9.1 ^protobuf@:3.17.999
     - py-lfpy@2.2.6
     #- biobb-common
     # demo for codejam12