You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
Initially, the code utilizes relative imports such as
from ..store import store
orfrom test_application.parent import parent
but when attempting to switch to a particular import style likeimport store
aModuleNotFoundError
arisesSomething like this:
View this discussion for more info
The text was updated successfully, but these errors were encountered: