How to Solve NameError: name 'Signal' is not defined -- stem

Solution: Import the 'Signal' module

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

from stem import Signal

 

For more information:
Python stem Signal