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

Solution: Import the 'glob' module

# Add the following line to the top of your code
from glob import glob

 

For more information:
glob glob

If the error has not been solved: