I am facing some issue while importing a class. The folder structure is as below:
python_space
|_ __init__.py
|_ ds_Tut
|_ __init__.py
|_ stacks
|_ __init__.py
|_ stacks.py (contains class Stack)
|_ trees
|_ __init__.py
|_ parseTree.py (wants to import Stack class from above)
Used the following code to import:
from stacks.stacks import Stack
Getting the following error:
"ImportError: No module named stacks.stacks"