How to Solve NameError: name 'Pygtail' is not defined -- pygtail
Solution: Import the 'Pygtail' module
To Solve the error, add the following line to the top of your code.
from pygtail import Pygtail
For more information:
Python pygtail Pygtail