Initially, the code utilizes relative imports such as from ..store import store
or from test_application.parent import parent
but when attempting to switch to a particular import style like import store
a ModuleNotFoundError
arises
Something like this:
Traceback (most recent call last):
File "/home/xxxx/software_eng/starfyre/test_application/build/__main__.py", line 40, in generate_pages
module = importlib.import_module(module_name)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/xxxx/software_eng/starfyre/test_application/build/pages/__init__.py", line 2, in <module>
import store
ModuleNotFoundError: No module named 'store'
View this discussion for more info
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too