BrokenProcessPool exception on running function verify_images

Jupyter + Windows = Broken Multithreading

Alternatively you can redefine verify_images to be single-threaded, in a cell just before execution.

def verify_images(fns):
    "Find images in `fns` that can't be opened"
    return L(fns[i] for i,o in enumerate(fns.map(verify_image)) if not o)
3 Likes