Function call being given different modules: ModuleNotFoundError: No Module1 the named ‘python_base.test1’; ‘python_base’ IS Not A Package ( ModuleNotFoundError: No module named ‘python_base.test1’ a; ‘python_base’ is not a package )
It is found that there is a py file with the same name under the package package, which causes an error to be reported when the call is made. (It is hereby recorded to prevent such low-level mistakes from being made in the future!)
Two other points to note:
Similar Posts:
- Python for mac or windows: ModuleNotFoundError: No module named ‘lxml’ [How to Solve]
- [Solved] Python3 Error: ModuleNotFoundError: No module named ‘_bz2’
- modulenotfounderror: no module named ‘cv2’ [How to Solve]
- Prompt python.exe when using the command line to run the use case: error while finding module specification for ‘testcase_1.Test’…..
- jupyter notebook error: No module named ‘tensorflow’
- ModuleNotFoundError: No module named ‘future‘
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named ‘M…
- [Solved] Python celery Run on Windows Error: (ModuleNotFoundError: No module named ‘grp’)
- Python solves the problem of modulenotfounderror: no module named ‘queue’
- [Solved] Python Error: ModuleNotFoundError: No module named ‘tkinter’