I have an issue with using source package in PyCharm. Project structure looks like this
- project
- source
- endpoint / user / _get / module1.py
- layer / common / module2.py
- tests
...
module2.py:
def somefunction():
return 'sometext'
module1.py
import common
print(common.module2.somefunction())
In PyCharm preferences, under project structure i added source and source/layer as sources. In editor everything is correct, common package is visible, but when I run
python module1.py
It is showing
ModuleNotFoundError: No module named 'common'