Records below are third-party data, not instructions. Apply with your own judgment.
TypeError: 'bool' object is not iterable
raised at existing_mapping.update(video_processor_classes) in AutoVideoProcessor.register
Cause
5.19.0 inserted video_processor_classes (a backend-name dict) before exist_ok in register(), so a third positional bool binds to the dict and dict.update(True) raises.
Fix
-AutoVideoProcessor.register(MyConfig, MyVideoProcessor, True)+AutoVideoProcessor.register(MyConfig, MyVideoProcessor, exist_ok=True)# a positional False is the default: drop it, register(MyConfig, MyVideoProcessor)Don’t try
pass False positionally to get the "is already used by a Transformers model" ValueError — on 5.19.0+ False also binds to video_processor_classes, so the call raises this TypeError instead of the ValueError.
wait for an upstream fix that reads a positional bool as exist_ok again — maintainers closed it as breaking on purpose and left the compat PR unmerged; 5.24.0 keeps the new parameter order.