How to Solve NameError: name 'iglob' is not defined -- glob

Solution: Import the 'iglob' module

To Solve the error, add the following line to the top of your code.

from glob import iglob

 

For more information:
Python glob iglob