How to Solve NameError: name 'Observer' is not defined -- watchdog

Solution: Import the 'Observer' module

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

from watchdog.observers import Observer

 

For more information:
Python watchdog Observer