How to Solve NameError: name 'fix_encoding' is not defined -- third_party

Solution: Import the 'fix_encoding' module

# Add the following line to the top of your code
from third_party.depot_tools import fix_encoding

 

For more information:
third_party fix_encoding