Line a 20x10 cm (8x4 in) loaf mold with cling film.
Pulse the cashews, rolled oats, flax seeds and spices in a blender until crumbly - but not into a paste - and tip the mixture into a bowl.
Blend the dates to a thick, sticky paste.
Add the crumb mixture and pumpkin seeds to the dates and blend everything together until uniform; the mass should be sticky but not liquid (add a teaspoon of water if it is too dry, or a little extra oatmeal if it is too sticky).
Press the mixture firmly into the lined mold, smoothing and compacting the top.
Chill in the refrigerator for a couple of hours until firm, then turn out and cut into portions.
Store the log in the refrigerator.