How to Solve NameError: name 'function1' is not defined -- package1

Solution: Import the 'function1' module

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

from package1.module2 import function1

 

For more information:
Python package1 function1