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