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

Solution: Import the 'module1' module

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

from package1 import module1

 

For more information:
Python package1 module1