Error message: Integer and argument expected, got united

Error: range() integer end argument expected, got unicode.

Traceback (most recent call last):

File “<maya console>”, line 1, in <module>

File “<maya console>”, line 62, in moPathGen

TypeError: range() integer end argument expected, got unicode.

// Warning: Cycle on ‘addDoubleLinear16.output’ may not evaluate as expected. (Use ‘cycleCheck -e off’ to disable this warning.) //
select -addFirst motionPath6 ;

what does the above error message mean?

It means you tried to pass a Unicode string into range on line 62 of your script, when it needed an int value.