How to Solve NameError: name 'tzutc' is not defined -- dateutil

Solution: Import the 'tzutc' module

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

from dateutil import tzutc

 

For more information:
Python dateutil tzutc