I try to convert a python list to a ctype array. But somehow I always get the error "TypeError: int expected instead of float" in the line with this code:
self.cValues = (ctypes.c_int * len(self.values))(*self.values)
I created self.values a few lines before. It's a normal python list. I am 100% sure, len(self.values) is an integer, I tested it with the type() function and the result was class 'int'. So what else is the problem with this line? Thanks for help.