How to Solve NameError: name 'abc' is not defined

Solution: Import the 'abc' module

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

import abc

 

For more information:
Python abc