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