Dec-10-2020, 03:53 PM
Hello. I have a simple class and a simple test.
I've created packages com.my.pack and class My1.py
I've created packages com.my.pack and class My1.py
class My1: val1="ABC" val2=12345 def init(self): print("init class My1")And I've created class TestMy1.py
from com.my.pack import My1 class TestMy1: my1 = My1()When I'm trying to run a test the exception occurs
Error:from com.my.pack import My1
ModuleNotFoundError: No module named 'com':
What is the problem?