How to Solve NameError: name 'some_class' is not defined -- .

Solution: Import the 'some_class' module

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

from . import some_class

 

For more information:
Python . some_class