raise TypeError, ("Both weights and assigned values must be a "
"sequence of numbers when assigning to values of "
"%r. Currently assigning value(s) %r of %r to a "
"fitness with weights %s."
% (self.__class__, values, type(values),
self.weights)), traceback
That's the Python 2 syntax. For Python 3, that first comma needs to be removed.
@timrprobocom
I've created a Python 3.10 port of the DEAP library called DEAP-er.
It's currently in beta, but you could check it out and provide feedback about any bugs.
Line 193 in base.py has
That's the Python 2 syntax. For Python 3, that first comma needs to be removed.
https://github.com/DEAP/deap/blob/b8513fc16fa05b2fe6b740488114a7f0c5a1dd06/deap/base.py#L193