Hello guys when I try to import modules from packages that isn’t working this always told me this error message:
no module named: 'Package1'
Looking at my project structure there is no uncorrectly structure packages or modules
Project structure
Project
-Package1
-Module1
-Module2
-Package2
-Module3
-Module4
There is my project structure and I still cannot import modules from packages in any Project folder and I really need this function because some of my important projects folders import modules from packages.
There is my Module2 Python code
def function1():
print('this is function1 from module1 in package1')
And there is my my module4 Python code
from Package1 import Module2
Module2.function1()
I’ve made lot of google research and I’ve found nothing. I’ve also made multiples youtube research and it doesn’t work and now I’m trying to have expert advertise on forum so please feel free to let me know if you have some idea about what happen with my project.
thank alot to anybody who want to help me
Keven Boudreau is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.