Although I didn't define any categories, I also got this error. Changing the type from int to float64 solved it for me.