That is no longer needed. Nowadays you can directly export the style from the GUI, the CSV part can be skipped.
After looking at your CSV file I noticed that there are extra ;
at the end of the HDR lines. Once I removed those the style wasn’t all 0 any longer.
Edit: The colors are all wrong when using it though.
Thank you for telling me my mistake, sorry. I just fix but in the generated .dtstyle file if I apply it to a photo, I have only one patch in CLUT and the picture is black.
I managed to create a DTStyle directly with dartkable-chat by clicking on process and then on export.
A big thank you to all who helped me to overcome the creation of DTStyle. I have a PDF tutorial in French and I have it at your disposal if you are interested.
I just tried to compile the script for haldclut2dtstyle.sh. ./build does not end. There are compilation errors.
This script is compatible with version 2.2.5 of darktable.