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