Hi @Community member ,
if not already done, please consider the UM2688 user manual, dealing with the STM32Cube High Speed Datalog function pack.
In particular, you can refer to the last part of section 2.6.2, p.33, especially about the libraries that have to be installed in order to make the script working. The Python version you are using should be ok.
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon